Add install target

This commit is contained in:
Rodrigo Arias 2023-03-14 14:16:55 +01:00
parent 70081f2237
commit f0fccd8fe8

View File

@ -1,5 +1,6 @@
CC=clang CC=clang
CFLAGS=-O3 -fompss-2 CFLAGS=-O3 -fompss-2
DESTDIR?=/usr
BENCHMARKS=\ BENCHMARKS=\
sched_get \ sched_get \
@ -16,6 +17,10 @@ all: $(BIN)
clean: clean:
rm -f $(BIN) rm -f $(BIN)
install: $(BIN)
mkdir -p $(DESTDIR)/bin
cp bench6* $(DESTDIR)/bin
plot: $(BIN) $(DATA) $(PLOT) plot: $(BIN) $(DATA) $(PLOT)
bench6.%: src/%.c src/common.c bench6.%: src/%.c src/common.c