diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -30,7 +30,9 @@ GOLDFLAGS = -L $(GOLIBDIR) $(CC) $(CFLAGS) -o $@ -c $< .go.a: - go tool compile $(GOCFLAGS) -I $(@D) -o $@ -p $(*F) $< + go tool compile $(GOCFLAGS) -I $(@D) -o $@ -p $(*F) \ + `find $< $$(if [ $(*F) != main ]; then \ + echo src/$(NAME).go src/version.go; fi) | uniq` .a.bin: go tool link $(GOLDFLAGS) -L $(@D) -o $@ --extldflags '$(LDLIBS)' $< |