Only build binaries with make

This commit is contained in:
Rodrigo Arias 2023-03-14 14:11:13 +01:00
parent 25c88bca0f
commit 70081f2237

View File

@ -11,7 +11,12 @@ BIN=$(addprefix bench6.,$(BENCHMARKS))
DATA=$(addsuffix .csv, $(addprefix data/,$(BENCHMARKS)))
PLOT=$(DATA:=.png)
all: $(BIN) $(DATA) $(PLOT)
all: $(BIN)
clean:
rm -f $(BIN)
plot: $(BIN) $(DATA) $(PLOT)
bench6.%: src/%.c src/common.c
$(CC) $(CFLAGS) -o $@ $^