(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
This commit is contained in:
parent
c0a60eb044
commit
b50cb178e3
1 changed files with 6 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
srcdir = @ROOT_DIR@
|
srcdir = @srcdir@
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Compiler and system configuration
|
# Compiler and system configuration
|
||||||
|
|
@ -74,6 +74,9 @@ SWILL:
|
||||||
DOH:
|
DOH:
|
||||||
@cd $(SOURCE)/DOH; $(MAKE)
|
@cd $(SOURCE)/DOH; $(MAKE)
|
||||||
|
|
||||||
|
.PHONY: SWIG1.1 Modules1.1 Swig Preprocessor LParse \
|
||||||
|
Experiment Swim SWILL DOH
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# Runtime libraries
|
# Runtime libraries
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
@ -86,10 +89,10 @@ runtime:
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@for i in `ls $(SOURCE)`; \
|
@for i in $(SOURCEDIRS) ; \
|
||||||
do \
|
do \
|
||||||
if [ -d $(SOURCE)/$$i -a -f $(SOURCE)/$$i/Makefile ]; then \
|
if [ -d $(SOURCE)/$$i -a -f $(SOURCE)/$$i/Makefile ]; then \
|
||||||
cd $(SOURCE)/$$i; $(MAKE) clean; cd $(srcdir); \
|
(cd $(SOURCE)/$$i; $(MAKE) clean) ; \
|
||||||
fi \
|
fi \
|
||||||
done;
|
done;
|
||||||
@cd Runtime; $(MAKE) clean
|
@cd Runtime; $(MAKE) clean
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue