add 'make update' to update dependencies
This commit is contained in:
1 parent
da3d343f26
commit
b8e4ad1314
1 file changed
+4
-1
@@ -1,5 +1,5 @@
|
|||||||
.DEFAULT: all
|
.DEFAULT: all
|
||||||
.PHONY: all tests clean
|
.PHONY: all update tests clean
|
||||||
|
|
||||||
# If you can use docker without being root, you can do "make SUDO="
|
# If you can use docker without being root, you can do "make SUDO="
|
||||||
SUDO=sudo
|
SUDO=sudo
|
||||||
@@ -14,6 +14,9 @@ WEAVEDNS_EXPORT=/var/tmp/weavedns.tar
|
|||||||
|
|
||||||
all: $(WEAVER_EXPORT) $(WEAVEDNS_EXPORT)
|
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):
|
$(WEAVER_EXE) $(WEAVEDNS_EXE):
|
||||||
go get -tags netgo ./$(shell dirname $@)
|
go get -tags netgo ./$(shell dirname $@)
|
||||||
go build -ldflags "-extldflags \"-static\" -X main.version $(WEAVE_VERSION)" -tags netgo -o $@ ./$(shell dirname $@)
|
go build -ldflags "-extldflags \"-static\" -X main.version $(WEAVE_VERSION)" -tags netgo -o $@ ./$(shell dirname $@)
|
||||||
|
|||||||
Reference in new issue
Block a user