From 7a623340604a66684041dd77de82c8929397d024 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 6 Aug 2007 23:36:31 +0000 Subject: [PATCH] You stupid automatic dependency trackers! Move out of my way! I'm building C source during VPATH builds, stop tracking the old version! git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4010 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/Makefile.am | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 89e0a3db3f..0c3ab34878 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -362,7 +362,8 @@ CLEANFILES=$(TEST_UNITS) BUILT_SOURCES=../include/surf/surfxml.h surf/surfxml.c \ ../include/xbt/graphxml.h xbt/graphxml.c \ - gras/DataDesc/ddt_parse.yy.c + gras/DataDesc/ddt_parse.yy.c \ + $(TEST_UNITS) @builddir@/simgrid_units_main.c testall_SOURCES= $(TEST_UNITS) @builddir@/simgrid_units_main.c testall_LDADD=libgras.la @@ -393,8 +394,12 @@ if MAINTAINER_MODE @top_srcdir@/tools/sg_unit_extractor.pl @srcdir@/xbt/cunit.c clean-units: - rm -f simgrid_units_main.c *_unit.c - + rm -f simgrid_units_main.c *_unit.c @srcdir@/simgrid_units_main.c @srcdir@/*_unit.c + for n in $(TEST_UNITS) ; do \ + dep=`echo $$n|sed -e 's|.c$$|.Po|' -e 's|[^/]*/||' -e 's|^|.deps/|'`; \ + echo "Removing dependency tracker of $$n ($$dep @srcdir@/$$dep)"; \ + rm -vf $$dep @srcdir@/$$dep; touch $$dep; \ + done else $(TEST_UNITS) simgrid_units_main.c clean-units: -- 2.20.1