correct makefile
authorLaurent Mazet <mazet@softndesign.org>
Mon, 2 Jan 2023 20:59:26 +0000 (21:59 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Mon, 2 Jan 2023 21:01:05 +0000 (22:01 +0100)
makefile

index b10fc9fdb46825141ef65786ae50c1eec847521e..f5e19b9bf3cf3464218cfbfba33ae02eb6d2366c 100644 (file)
--- a/makefile
+++ b/makefile
@@ -67,7 +67,7 @@ valgrinds:
        $(MAKE) $(addprefix valgrind_,$(ALLEXE))
 
 wipe: purge
-       $(call TITLE, "wiping")
+       $(call TITLE, "Wiping")
        touch wipe
        rm -f wipe $(wildcard *.gcda *.gcno)
        $(call PASS, SUCCESS)
@@ -81,13 +81,13 @@ include $(wildcard *.d)
 include $(wildcard *.ld)
 
 gcov_%:
-       make purge
-       CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-fprofile-arcs -ftest-coverage" make
-       make test_$(@:gcov_%=%)
+       $(MAKE) purge
+       CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-fprofile-arcs -ftest-coverage" $(MAKE)
+       $(MAKE) test_$(@:gcov_%=%)
        gcov `sed -e 's/\.exe:/.c/;s/\.o/.c/g' $(@:gcov_%=%.ld)`
        touch gcov
        rm -f gcov $(wildcard *.gcda *.gcno)
-       make purge
+       $(MAKE) purge
 
 %.test: %.c
        $(call TITLE, "Building $@")