summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 9d00d8d..1bc298f 100644
--- a/Makefile
+++ b/Makefile
@@ -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'