Use $(@D) rather than $(shell dirname $@)
This commit is contained in:
1 parent
805005e632
commit
1328f8bec7
1 file changed
+2
-2
@@ -31,7 +31,7 @@ update:
|
|||||||
|
|
||||||
$(WEAVER_EXE) $(WEAVEDNS_EXE): common/*.go
|
$(WEAVER_EXE) $(WEAVEDNS_EXE): common/*.go
|
||||||
go get -tags netgo ./$(@D)
|
go get -tags netgo ./$(@D)
|
||||||
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 $@ ./$(@D)
|
||||||
@strings $@ | grep cgo_stub\\\.go >/dev/null || { \
|
@strings $@ | grep cgo_stub\\\.go >/dev/null || { \
|
||||||
rm $@; \
|
rm $@; \
|
||||||
echo "\nYour go standard library was built without the 'netgo' build tag."; \
|
echo "\nYour go standard library was built without the 'netgo' build tag."; \
|
||||||
@@ -47,7 +47,7 @@ $(WEAVEDNS_EXE): nameserver/*.go weavedns/main.go
|
|||||||
# Sigproxy needs separate rule as it fails the netgo check in the main
|
# Sigproxy needs separate rule as it fails the netgo check in the main
|
||||||
# build stanza due to not importing net package
|
# build stanza due to not importing net package
|
||||||
$(SIGPROXY_EXE): sigproxy/main.go
|
$(SIGPROXY_EXE): sigproxy/main.go
|
||||||
go build -o $@ ./$(shell dirname $@)
|
go build -o $@ ./$(@D)
|
||||||
|
|
||||||
$(WEAVER_EXPORT): weaver/Dockerfile $(WEAVER_EXE)
|
$(WEAVER_EXPORT): weaver/Dockerfile $(WEAVER_EXE)
|
||||||
$(SUDO) docker build -t $(WEAVER_IMAGE) weaver
|
$(SUDO) docker build -t $(WEAVER_IMAGE) weaver
|
||||||
|
|||||||
Reference in new issue
Block a user