self.RESFILE = ''
self.RESRULE = ''
self.OVERRIDEFLAGS = '/GX-'
+ self.RMCMD = '-erase '
+ self.WXPSRCDIR = os.path.normpath(self.WXPSRCDIR)
+
else:
self.MAKE = 'make'
'-I$(WXPSRCDIR)'
self.LFLAGS = '-L$(WXPSRCDIR) `wx-config --libs`'
self.LIBS = '-l$(HELPERLIB)'
+ self.RMCMD = '-rm -f '
# **** What to do when I start supporting Motif, etc.???
self.GENCODEDIR = 'gtk'
self.PYMODULES = splitlines(swapslash(pymodules))
+ # now make a list of the python files that would need uninstalled
+ pycleanup = ""
+ for name in self.SWIGFILES:
+ pycleanup = pycleanup + self.makeCleanupList(name)
+ for name in self.PYFILES:
+ pycleanup = pycleanup + self.makeCleanupList(name)
+ self.PYCLEANUP = swapslash(pycleanup)
+
# finally, build the makefile
if sys.platform == 'win32':
print "Makefile created: ", self.MAKEFILE
+
+ #------------------------------------------------------------
+ def makeCleanupList(self, name):
+ st = ""
+ st = st + '\t%s$(TARGETDIR)\\%s.py\n' % (self.RMCMD, os.path.splitext(name)[0])
+ st = st + '\t%s$(TARGETDIR)\\%s.pyc\n' % (self.RMCMD, os.path.splitext(name)[0])
+ st = st + '\t%s$(TARGETDIR)\\%s.pyo\n' % (self.RMCMD, os.path.splitext(name)[0])
+ return st
+
+
#------------------------------------------------------------
def readConfigFiles(self, args):
return self.processFile(self.bldCfg, 1) and \
+#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
uninstall:
-erase $(TARGETDIR)\\$(TARGET)
- -erase $(PYMODULES)
+%(PYCLEANUP)s
+
#----------------------------------------------------------------------
# implicit rule for compiling .cpp and .c files
install: $(TARGETDIR) $(TARGETDIR)/$(TARGET) pycfiles %(OTHERINSTALLTARGETS)s
clean:
- -rm -f *.o *.so *~
+ -rm -f *.o *$(SO) *~
-rm -f $(TARGET)
uninstall:
-rm -f $(TARGETDIR)/$(TARGET)
- -rm -f $(PYMODULES)
+%(PYCLEANUP)s
#----------------------------------------------------------------------
OTHERLIBS = '$(WXDIR)\lib\glcanvas.lib glu32.lib opengl32.lib'
else:
SOURCES = [GENCODEDIR+'/_glcanvas.cpp']
- print "Warning: assuming MesaGL libraries. Override OTHERLIBS in build.local if you have native GL!"
+ print "Warning: Assuming MesaGL libraries. Override OTHERLIBS in build.local\n"\
+ " if you have native GL!"
OTHERLIBS = "-lMesaGL -lMesaGLU"
OTHERRULES = """
$(GENCODEDIR)/_glcanvas.cpp :