add 'make update' to update dependencies

This commit is contained in:
Matthias Radestock committed 2015-01-02 16:35:51 +00:00
1 parent da3d343f26
commit b8e4ad1314
1 file changed
+4 -1
+4 -1
View File
@@ -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 $@)