From b50cb178e318b62fc9c498a4ec00e6204df820c8 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Sat, 26 Feb 2000 04:56:00 +0000 Subject: [PATCH] (srcdir): Fix bug: Set this var correctly. (clean): Rewrite using subshell. (.PHONY): New target. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@265 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Makefile.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/SWIG/Makefile.in b/SWIG/Makefile.in index 174d74239..dc3921645 100644 --- a/SWIG/Makefile.in +++ b/SWIG/Makefile.in @@ -4,7 +4,7 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ -srcdir = @ROOT_DIR@ +srcdir = @srcdir@ ############################################################################## # Compiler and system configuration @@ -74,6 +74,9 @@ SWILL: DOH: @cd $(SOURCE)/DOH; $(MAKE) +.PHONY: SWIG1.1 Modules1.1 Swig Preprocessor LParse \ + Experiment Swim SWILL DOH + ##################################################################### # Runtime libraries ##################################################################### @@ -86,10 +89,10 @@ runtime: ##################################################################### clean: - @for i in `ls $(SOURCE)`; \ + @for i in $(SOURCEDIRS) ; \ do \ if [ -d $(SOURCE)/$$i -a -f $(SOURCE)/$$i/Makefile ]; then \ - cd $(SOURCE)/$$i; $(MAKE) clean; cd $(srcdir); \ + (cd $(SOURCE)/$$i; $(MAKE) clean) ; \ fi \ done; @cd Runtime; $(MAKE) clean