From 759795182295cd1b6a2aa8d3aa1f67e7e509e877 Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 2 Aug 2006 18:38:22 +0000 Subject: [PATCH] Add a clean-unit target which removes any extracted units, usefull when working on cunit mecanism git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2681 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 9ee0c15844..08d13dbe4a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -196,7 +196,7 @@ AMOK_SRC= \ # are generated. Sorry about that. # If you add a test unit, you should regenerate simgrid_units_main.c from scratch: -# rm -f simgrid_units_main.c *_unit.c ; make testall +# make clean-units ; make testall # Suites and tests run in the given order. @@ -235,10 +235,14 @@ config_unit.c: xbt/config.c @top_srcdir@/tools/sg_unit_extractor.pl $^ simgrid_units_main.c: $(TEST_UNITS) + @top_srcdir@/tools/sg_unit_extractor.pl xbt/cunit.c + +clean-units: + rm -f simgrid_units_main.c *_unit.c else -$(TEST_UNITS) simgrid_units_main.c: +$(TEST_UNITS) simgrid_units_main.c clean-units: @echo "ERROR: Test units not generated." @echo "ERROR: If you are using a CVS checkout, configure with the --enable-maintainer-mode flag" @echo "ERROR: If not, please report the bug to the simgrid-devel mailing list." -- 2.20.1