X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=makefile;fp=makefile;h=b10fc9fdb46825141ef65786ae50c1eec847521e;hb=031d7bba7849b5b5ec7d1110f830175cc3b65b44;hp=090167546568a9e47e12ff1688f0d3003d59d68c;hpb=55cfeafacf6d7b97cb361cd39e06a61c3041c740;p=calc.git diff --git a/makefile b/makefile index 0901675..b10fc9f 100644 --- a/makefile +++ b/makefile @@ -63,6 +63,9 @@ purge: clean rm -f purge $(ALLEXE:%=%.exe) $(call PASS, SUCCESS) +valgrinds: + $(MAKE) $(addprefix valgrind_,$(ALLEXE)) + wipe: purge $(call TITLE, "wiping") touch wipe @@ -102,10 +105,10 @@ test_%: %.test %.exe done; \ test "$$RC" -ne 1 -valgrind_%: % +valgrind_%: %.exe VALGRIND="valgrind -v --leak-check=full --show-reachable=yes --log-fd=2"; \ export VALGRIND; \ - $(MAKE) test_$< + $(MAKE) $(@:valgrind_%=test_%) %.d: %.c $(call TITLE, "Building $@")