+purge-release-py:
+ @if [ ! -e build-gtk-dbg-py-stamp ]; then \
+ $(MAKE) -f debian/rules clean-py; \
+ fi
+ $(RM) build-gtk-py-stamp
+
+build-gtk-dbg-py-stamp: build-gtk-debug-stamp purge-release-py
+ dh_testdir
+ touch docs/lgpl.txt
+ cd wxPython \
+ && $(python_ver) ./setup.py build \
+ WX_CONFIG='$(wxconfig-dbg)' \
+ WXPORT=gtk2 \
+ UNICODE=1
+ touch $@
+
+
+configure-msw-shared-stamp:
+ dh_testdir
+ mkdir -p $(objdir_msw_shared)
+ cd $(objdir_msw_shared) \
+ && ../configure --prefix=/usr/$(cross_host) \
+ --cache-file=$(config_cache_cross) \
+ --host=$(cross_host) \
+ --build=$(cross_build) \
+ --with-flavour=$(DEBIAN_WXFLAVOUR)
+ touch $@
+
+build-msw-shared-stamp: configure-msw-shared-stamp
+ dh_testdir
+ cd $(objdir_msw_shared) && $(FAST_MAKE)
+ touch $@
+
+configure-msw-static-stamp:
+ dh_testdir
+ mkdir -p $(objdir_msw_static)
+ cd $(objdir_msw_static) \
+ && ../configure --prefix=/usr/$(cross_host) \
+ --cache-file=$(config_cache_cross) \
+ --host=$(cross_host) \
+ --build=$(cross_build) \
+ --with-flavour=$(DEBIAN_WXFLAVOUR) \
+ --disable-shared
+ touch $@
+
+build-msw-static-stamp: configure-msw-static-stamp
+ dh_testdir
+ cd $(objdir_msw_static) && $(FAST_MAKE)
+ touch $@
+
+configure-msw-dbg-stamp:
+ dh_testdir
+ mkdir -p $(objdir_msw_dbg)
+ cd $(objdir_msw_dbg) \
+ && ../configure --prefix=/usr/$(cross_host) \
+ --cache-file=$(config_cache_cross) \
+ --host=$(cross_host) \
+ --build=$(cross_build) \
+ --with-flavour=$(DEBIAN_WXFLAVOUR) \
+ --enable-debug
+ touch $@
+
+build-msw-dbg-stamp: configure-msw-dbg-stamp
+ dh_testdir
+ cd $(objdir_msw_dbg) && $(FAST_MAKE)
+ touch $@
+
+
+clean-py:
+ cd wxPython \
+ && rm -rf licence \
+ && rm -rf build* \
+ && rm -rf docs/xml-raw \
+ && rm -rf wx/*.py
+
+ # What to do about src/__version__.py ???
+
+
+# We do the equivalent of this above by removing build, unfortunately
+# its not enough by itself to get the tree properly clean again.
+# && ./setup.py clean
+
+clean: debian/control clean-py