PYFILES = ['__init__.py']
+SWIGDEPS = '_defs.i my_typemaps.i'
+OTHERDEPS = 'helpers.h'
if sys.platform == 'win32':
RESFILE = 1
else:
DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
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 ---------------------------------------------------------
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)
+
+
+#----------------------------------------------------------------------
+
dist: tgz rpm
tgz: