From 922dc97681d8b286a348f61778dd11a9b696658f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 10 Sep 1999 06:23:03 +0000 Subject: [PATCH] Better dependency checking git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/wxPython/distrib/build.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/utils/wxPython/distrib/build.py b/utils/wxPython/distrib/build.py index 6bd2fefaf7..c375b1cf3a 100755 --- a/utils/wxPython/distrib/build.py +++ b/utils/wxPython/distrib/build.py @@ -242,6 +242,8 @@ class BuildConfig: self.WXUSINGDLL = '1' self.OTHERDEP = '' self.WXPSRCDIR = '$(WXDIR)/utils/wxPython/src' + self.SWIGDEPS = '' + self.OTHERDEPS = '' if sys.platform == 'win32': @@ -351,14 +353,26 @@ class BuildConfig: # now build the text for the dependencies depends = "" for name in self.SWIGFILES: - text = '$(GENCODEDIR)/%s.cpp $(GENCODEDIR)/%s.py : %s.i\n' \ + rootname = os.path.splitext(name)[0] + text = '$(GENCODEDIR)/%s.cpp $(GENCODEDIR)/%s.py : %s.i %s\n' \ '$(TARGETDIR)\\%s.py : $(GENCODEDIR)\\%s.py\n' % \ - tuple([os.path.splitext(name)[0]] * 5) + (rootname, rootname, rootname, self.SWIGDEPS, rootname, rootname) depends = depends + text + if self.OTHERDEPS: + text = '%s%s : %s\n' % \ + (os.path.splitext(name)[0], self.OBJEXT, self.OTHERDEPS) + depends = depends + text for name in self.PYFILES: text = '$(TARGETDIR)\\%s.py : %s.py\n' % \ tuple([os.path.splitext(name)[0]] * 2) depends = depends + text + if self.OTHERDEPS: + for name in self.SOURCES: + name = os.path.basename(name) + text = '%s%s : %s\n' % \ + (os.path.splitext(name)[0], self.OBJEXT, self.OTHERDEPS) + depends = depends + text + self.DEPENDS = swapslash(depends) -- 2.45.2