diff options
author | EuAndreh <eu@euandre.org> | 2024-10-27 07:35:20 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-10-27 07:35:20 -0300 |
commit | 0e9087d1c2a4c6e5855435896963383358ae806b (patch) | |
tree | 54bd532aba825c25e0eefc5bc4a9267a09227497 | |
parent | Remove "metadata" column from tables (diff) | |
download | cracha-0e9087d1c2a4c6e5855435896963383358ae806b.tar.gz cracha-0e9087d1c2a4c6e5855435896963383358ae806b.tar.xz |
Makefile: normalize with latest standards
-rw-r--r-- | Makefile | 10 |
1 files changed, 4 insertions, 6 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 $(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)' $< + go tool link $(GOLDFLAGS) -L $(@D) -o $@ --extldflags '$(LDLIBS)' $< @@ -79,7 +79,7 @@ $(libs.a): src/$(NAME).go src/version.go $(fuzz-targets/lib.a): go tool compile $(GOCFLAGS) -o $@ -p $(NAME) -d=libfuzzer \ - src/version.go $*.go src/$(NAME).go + $*.go src/$(NAME).go src/version.go src/version.go: Makefile echo 'package $(NAME); const Version = "$(VERSION)"' > $@ @@ -91,7 +91,6 @@ $(NAME).bin: src/main.bin .PRECIOUS: tests/queries.sql tests/queries.sql: tests/main.bin ALWAYS - env TESTING_DUMP_SQL_QUERIES=1 $(EXEC)tests/main.bin | ifnew $@ env TESTING_DUMP_SQL_QUERIES=1 $(EXEC)tests/main.bin | diff -U10 $@ - tests.bin-check = \ @@ -137,8 +136,7 @@ fuzz: $(fuzz-targets/main.bin-check) benchmarks/main.bin-check = $(benchmarks/main.go:.go=.bin-check) $(benchmarks/main.bin-check): - rm -f $*.txt - printf '%s\n' '$(EXEC)$*.bin' >> $*.txt + printf '%s\n' '$(EXEC)$*.bin' > $*.txt LANG=POSIX.UTF-8 time -p $(EXEC)$*.bin 2>> $*.txt printf '%s\n' '$*.txt' |