Re: svn commit: rev 5156 - in trunk: . build
From: Matt Kraai <kraai_at_alumni.cmu.edu>
Date: 2003-03-01 19:16:07 CET
On Sat, Mar 01, 2003 at 09:52:38AM -0800, Matt Kraai wrote:
Actually, this leaves the SWIG build outside the source dir
Matt
--
Oink!
Index: build/gen_base.py
===================================================================
--- build/gen_base.py (revision 5155)
+++ build/gen_base.py (working copy)
@@ -264,6 +264,7 @@
self.lang_abbrev = lang_abbrev[lang]
### hmm. this is Makefile-specific
self.build_cmd = '$(COMPILE_%s_WRAPPER)' % string.upper(self.lang_abbrev)
+ self.source_generated = 1
# the SWIG utility libraries
class SWIGUtilPython(ObjectFile):
Index: build/gen_make.py
===================================================================
--- build/gen_make.py (revision 5156)
+++ build/gen_make.py (working copy)
@@ -205,7 +205,7 @@
for objname, sources in self.graph.get_deps(gen_base.DT_SWIG_C):
deps = string.join(sources)
- self.ofile.write('%s: %s\n\t$(RUN_SWIG_%s) %s\n'
+ self.ofile.write('%s: %s\n\t$(RUN_SWIG_%s) $(top_srcdir)/%s\n'
% (objname, deps, string.upper(objname.lang_abbrev),
sources[0]))
@@ -213,7 +213,12 @@
deps = string.join(sources)
cmd = getattr(objname, 'build_cmd', '')
if cmd:
- self.ofile.write('%s: %s\n\t%s %s\n' % (objname, deps, cmd, sources[0]))
+ if not getattr(objname, 'source_generated', 0):
+ self.ofile.write('%s: %s\n\t%s $(top_srcdir)/%s\n'
+ % (objname, deps, cmd, sources[0]))
+ else:
+ self.ofile.write('%s: %s\n\t%s %s\n'
+ % (objname, deps, cmd, sources[0]))
else:
self.ofile.write('%s: %s\n' % (objname, deps))
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 1 19:16:03 2003
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.