Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a clean-unit target which removes any extracted units, usefull when working on...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 2 Aug 2006 18:38:22 +0000 (18:38 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 2 Aug 2006 18:38:22 +0000 (18:38 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2681 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/Makefile.am

index 9ee0c15..08d13db 100644 (file)
@@ -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."