diff --git a/Makefile b/Makefile index f4b0ded8..2af523a1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .DEFAULT: all -.PHONY: all tests clean +.PHONY: all update tests clean # If you can use docker without being root, you can do "make SUDO=" SUDO=sudo @@ -14,6 +14,9 @@ WEAVEDNS_EXPORT=/var/tmp/weavedns.tar all: $(WEAVER_EXPORT) $(WEAVEDNS_EXPORT) +update: + go get -u -f -v -tags -netgo ./$(shell dirname $(WEAVER_EXE)) ./$(shell dirname $(WEAVEDNS_EXE)) + $(WEAVER_EXE) $(WEAVEDNS_EXE): go get -tags netgo ./$(shell dirname $@) go build -ldflags "-extldflags \"-static\" -X main.version $(WEAVE_VERSION)" -tags netgo -o $@ ./$(shell dirname $@)