aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2018-03-13 11:29:49 +0000
committerFelix Hanley <felix@userspace.com.au>2018-03-13 11:29:49 +0000
commit79c6a22d81e6ceadb23636e90e5d53f2a86e090d (patch)
tree33776c9bedc99ccd87c1c7061b6195500c05f54d /Makefile
parenta67075e332458002ce4c56c0aa07e03807dc22ea (diff)
downloaddhtsearch-79c6a22d81e6ceadb23636e90e5d53f2a86e090d.tar.gz
dhtsearch-79c6a22d81e6ceadb23636e90e5d53f2a86e090d.tar.bz2
Fix tagging and announce callbacks
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2ddb5d0..0fd62a5 100644
--- a/Makefile
+++ b/Makefile
@@ -8,14 +8,16 @@ BINARIES = $(patsubst %,$(CMD)-%-v$(VERSION), $(TARGETS))
.DEFAULT_GOAL := help
-release: check-env $(BINARIES) ## Build all binaries
+release: $(BINARIES) ## Build all binaries
-build: check-env ## Build binary for current platform
+build: $(CMD) ## Build binary for current platform
+
+$(CMD): check-env $(SRC)
cd cmd && go build -o ../$(CMD) $(LDFLAGS)
standalone : TAGS = sqlite
-$(BINARIES): $(SRC)
+$(BINARIES): check-env $(SRC)
cd cmd && env GOOS=`echo $@ |cut -d'-' -f2` GOARCH=`echo $@ |cut -d'-' -f3 |cut -d'.' -f1` go build -o ../$@ $(LDFLAGS)
test: ## Run tests and create coverage report
@@ -38,4 +40,4 @@ endif
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) |sort |awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
-.PHONY: help install build test lint clean
+.PHONY: help install test lint clean