diff options
author | EuAndreh <eu@euandre.org> | 2024-10-29 12:07:06 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-10-29 12:07:06 -0300 |
commit | f71b89cb732f4374ccc36c29d3f3bb073245753e (patch) | |
tree | d6f4311fbdf266a0662f999fe87fb983bd626864 | |
parent | Rename gracha -> cracha (diff) | |
download | cracha-f71b89cb732f4374ccc36c29d3f3bb073245753e.tar.gz cracha-f71b89cb732f4374ccc36c29d3f3bb073245753e.tar.xz |
Makefile: Prioritize local version when building and linking
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,12 +27,12 @@ GOLDFLAGS = -L $(GOLIBDIR) .SUFFIXES: .go .a .bin .bin-check .go.a: - go tool compile $(GOCFLAGS) -I $(@D) -o $@ -p $(*F) \ + go tool compile -I $(@D) $(GOCFLAGS) -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)' $< + go tool link -L $(@D) $(GOLDFLAGS) -o $@ --extldflags '$(LDLIBS)' $< |