From eb1b8c08fbc783abdbcca9892a3d880bf40f51be Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 19 Oct 2024 17:33:31 -0300 Subject: Makefile: Normalize .go.a: .SUFFIXES rule --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ca227e9..44e75c8 100644 --- a/Makefile +++ b/Makefile @@ -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)' $< -- cgit v1.2.3