From b8e4ad1314e8134d2f712d6e5d7256a78e735b5f Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Fri, 2 Jan 2015 16:35:51 +0000 Subject: [PATCH] add 'make update' to update dependencies --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 $@)