Fix for building from read-only source directories - Bug #1707582

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9726 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-04-30 20:40:17 +00:00
commit 0eda1f9062
3 changed files with 12 additions and 3 deletions

View file

@ -14,6 +14,9 @@ Version 1.3.32 (in progress)
director method is used as a C++ callback and not called
by the user from ruby code.
04/30/2007: wsfulton
Fix #1707582 - Restore building from read-only source directories.
04/30/2007: gga
[Ruby]
Ruby will now report the parameter index properly on type
@ -145,7 +148,6 @@ Version 1.3.32 (in progress)
investigation.
(bug #1700535 and patch #1702907)
04/21/2007: olly
Fix parsing of float constants with an exponent (e.g. 1e-02f)
(bug #1699646).

View file

@ -26,7 +26,11 @@ source:
libfiles: $(srcdir)/Lib/swigwarn.swg
.PHONY: source libfiles
# Files required just for the tarball
maintainer: libfiles
@cd $(SOURCE) && $(MAKE) CParse/parser.h
.PHONY: source libfiles maintainer
#####################################################################
# All the languages SWIG speaks (when it wants to)
@ -298,6 +302,9 @@ clean-docs:
@echo cleaning Docs
@test -d $(DOCS) || exit 0; cd $(DOCS) && $(MAKE) -s clean
maintainer-clean: clean-libfiles
@cd $(SOURCE) && $(MAKE) maintainer-clean
#####################################################################
# DISTCLEAN
#####################################################################

View file

@ -48,7 +48,7 @@ os.system("find "+dirname+" -name .cvsignore -exec rm {} \\;");
print "Building system"
os.system("cd "+dirname+"; ./autogen.sh")
os.system("cd "+dirname+"/Tools/WAD; autoconf")
os.system("cd "+dirname+"/Source/CParse; bison -y -d parser.y; mv y.tab.c parser.c; mv y.tab.h parser.h")
os.system("make maintainer")
# Remove autoconf files
os.system("find "+dirname+" -name autom4te.cache -exec rm -rf {} \\;");