diff options
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/Makefile.once.head/20-golang.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build-aux/Makefile.once.head/20-golang.mk b/build-aux/Makefile.once.head/20-golang.mk index 8d10a47..8e3835e 100644 --- a/build-aux/Makefile.once.head/20-golang.mk +++ b/build-aux/Makefile.once.head/20-golang.mk @@ -21,7 +21,8 @@ $(foreach v,$(_golang.cgo_variables),$(eval $v ?=)) export $(_golang.cgo_variables) _golang.src_cmd = find -L $1/src -name '.*' -prune -o \( -type f \( -false $(foreach e,go c s S cc cpp cxx h hh hpp hxx,-o -name '*.$e') \) -o -type d \) -print -golang.src = $(shell $(_golang.src_cmd)) $(addprefix $(var),$(_golang.cgo_variables)) +golang.src = $1/src $(shell $(_golang.src_cmd) 2>/dev/null) +golang.var = $(addprefix $(var),$(_golang.cgo_variables)) define golang.install GOPATH='$(abspath $1)' go install $(golang.FLAGS) $2 |