diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -37,12 +37,12 @@ LIBS := "github.com/vaughan0/go-ini" \ .PHONY: getlibs build clean distclean _setenv all: build + src/.rhrd-go.prepared: @echo "fetching lib: helsinki.at/rhrd-go" @cd src/; mkdir -p helsinki.at; cd helsinki.at; git clone git://git.helsinki.at/rhrd-go/ > /dev/null 2>&1 @touch $@ - getlibs: get-rhrd-go @$(foreach lib,$(LIBS), echo "fetching lib: $(lib)"; $(GOCMD) get $(lib);) @@ -60,12 +60,10 @@ vet: @echo "vetting: $(EXECUTEABLE)" @$(GOCMD) vet $(EXECUTEABLE) - format: @echo "formating: $(EXECUTEABLE)" @$(GOCMD) fmt $(EXECUTEABLE) - build: getlibs @echo "installing: $(EXECUTEABLE)" @$(GOCMD) install $(EXECUTEABLE) @@ -75,9 +73,7 @@ clean: rm -rf pkg/*/$(EXECUTEABLE) rm -rf bin - distclean: clean + @$(foreach dir,$(shell ls src/),$(if $(subst $(EXECUTEABLE),,$(dir)),$(shell rm -rf src/$(dir)))) rm -f src/.rhrd-go.prepared - rm -rf src/helsinki.at - rm -rf src/github.com rm -rf pkg |