From a9abb9fa5b9124174e9a7ddeec95c8323f4b16af Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 20 Aug 2023 23:37:08 +0200 Subject: Split build and run Both in the CI, and in the Makefile --- tests/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/Makefile b/tests/Makefile index 8db2853..96dfe2d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -96,8 +96,7 @@ TARGETS= \ .SILENT: gcc: CC=../x86_64-linux-musl-native/bin/gcc -gcc: GCOV=../x86_64-linux-musl-native/bin/gcov -gcc: clean all +gcc: $(TARGETS) clang: CC=clang clang: GCOV=gcov @@ -105,15 +104,14 @@ clang: CFLAGS+=-I/usr/include/x86_64-linux-musl clang: CFLAGS+=-I../x86_64-linux-musl-native/include/ clang: CFLAGS+=-Ix86_64-linux-musl-native/include/ clang: CFLAGS+=-nostdinc -clang: clean all +clang: $(TARGETS) - -all: $(TARGETS) run +all: gcc coverage: CFLAGS += -fprofile-arcs -ftest-coverage coverage: CC=../x86_64-linux-musl-native/bin/gcc coverage: GCOV=../x86_64-linux-musl-native/bin/gcov -coverage: all +coverage: $(TARGETS) run $(GCOV) *.c lcov --capture --directory . --output-file coverage.info genhtml coverage.info --output-directory coverage -- cgit v1.3