From 262836f32d4f1d774a399d6a680fc75a132743ef Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 26 Oct 2015 15:29:27 -0400 Subject: Makefile: fix gosrc --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a9f2e06..91dd37e 100644 --- a/Makefile +++ b/Makefile @@ -36,8 +36,9 @@ CGO_ENABLED = 1 export CGO_ENABLED cgo_variables = CGO_ENABLED CGO_CFLAGS CGO_CPPFLAGS CGO_CXXFLAGS CGO_LDFLAGS CC CXX -goext = c s S cc cpp cxx h hh hpp hxx -gosrc = $(shell find -L src -name '.*' -prune -o \( -type f \( $(foreach e,$(goext), -name '*.$e' ) \) -o -type d \) -print) +goext = go c s S cc cpp cxx h hh hpp hxx +gosrc_cmd = find -L src -name '.*' -prune -o \( -type f \( -false $(foreach e,$(goext),-o -name '*.$e') \) -o -type d \) -print +gosrc = $(shell $(gosrc_cmd)) GOPATH := $(realpath $(dir $(lastword $(MAKEFILE_LIST)))) -- cgit v1.2.2