SWIGFILES = ['wx.i', 'windows.i', 'windows2.i', 'windows3.i', 'events.i',
'misc.i', 'misc2.i', 'gdi.i', 'mdi.i', 'controls.i',
'controls2.i', 'cmndlgs.i', 'stattool.i', 'frames.i',
- 'image.i', 'printfw.i',
+ 'image.i', 'printfw.i', 'sizers.i', 'clip_dnd.i'
]
-PYFILES = ['__init__.py']
+PYFILES = ['__init__.py', '__version__.py']
+SWIGDEPS = '_defs.i my_typemaps.i'
+OTHERDEPS = 'helpers.h'
if sys.platform == 'win32':
RESFILE = 1
dist:
cd ..\..
wxPython\distrib\zipit.bat $(VERSION)
+
+dbg:
+ cd ..\distrib
+ makedbg.bat $(VERSION)
+
+dev:
+ cd ..\distrib
+ makedev.bat $(VERSION)
+
+__version__.py: ../distrib/build.py build.cfg
+ echo ver = '$(VERSION)' > __version__.py
+
"""
else:
DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
- OTHERINSTALLTARGETS = 'installHelpers installLibDemo'
+ OTHERINSTALLTARGETS = 'installLibDemo installHelpers '
+ OTHERUNINSTALLTARGETS = 'uninstallLibDemo uninstallHelpers '
OTHERRULES = """
lib$(HELPERLIB)$(SO) : helpers.o libpy.o
$(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
+
installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
+
$(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) : lib$(HELPERLIB)$(SO)
cp $< $@
@echo ---------------------------------------------------------
installLibDemo:
- @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython"]; then \\
+ @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
mkdir $(TARGETDIR)/lib; \\
mkdir $(TARGETDIR)/lib/sizers; \\
mkdir $(TARGETDIR)/demo; \\
mkdir $(TARGETDIR)/demo/bitmaps; \\
+ mkdir $(TARGETDIR)/demo/data; \\
cp ../lib/*.py $(TARGETDIR)/lib; \\
cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
cp ../demo/*.py $(TARGETDIR)/demo; \\
cp ../lib/*.txt $(TARGETDIR)/lib; \\
cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\
cp ../demo/*.txt $(TARGETDIR)/demo; \\
- cp ../demo/bitmaps/[a-z]* $(TARGETDIR)/demo/bitmaps; \\
- $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py -l $(TARGETDIR); \\
- $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py -l $(TARGETDIR); \\
+ cp ../demo/bitmaps/* $(TARGETDIR)/demo/bitmaps; \\
+ cp ../demo/data/* $(TARGETDIR)/demo/data; \\
+ $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
+ $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\
+ fi
+
+
+
+uninstallLibDemo:
+ @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
+ rm -rf $(TARGETDIR)/lib; \\
+ rm -rf $(TARGETDIR)/demo; \\
fi
+uninstallHelpers:
+ rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
+
+
+__version__.py: ../distrib/build.py build.cfg
+ echo ver = \\'$(VERSION)\\' > __version__.py
+
+
+#----------------------------------------------------------------------
+
dist: tgz rpm
tgz:
+OTHERRULES = OTHERRULES + """
+
+$(GENCODEDIR)/wx.py : _extras.py
+
+"""