- $(MAKE) -f debian/rules \
- DH_OPTIONS="-a $(addprefix -N,$(extra_packages))" \
- binary-common
+ dh_testdir -a
+ dh_testroot -a
+ dh_installdocs -a
+ dh_installchangelogs -a
+ dh_installexamples -a
+ dh_installmenu -a
+
+ rm -rf debian/$(package_gtk_dbg_py)/usr/share/doc/$(package_gtk_dbg_py)
+ ln -s $(package_gtk_py_lib) debian/$(package_gtk_dbg_py)/usr/share/doc/$(package_gtk_dbg_py)
+
+ifdef NO_PYCENTRAL
+ dh_python -a
+else
+ dh_pycentral -a
+endif
+
+# Don't strip debug libs at all, and strip cross libs elsewhere
+# with the cross host tools until dh_strip gets smarter.
+ dh_strip -p$(package_gtk_py_lib) --dbg-package=$(package_gtk_dbg_py)
+ dh_strip -N$(package_gtk_dbg) -N$(package_wxbase_dbg) \
+ -N$(package_msw_dev) -N$(package_msw_dbg) \
+ -N$(package_gtk_py_lib) -N$(package_gtk_dbg_py)
+
+ dh_link -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_makeshlibs -N$(package_gtk_py_lib) -N$(package_gtk_dbg_py) -V
+ dh_installdeb -a
+ dh_shlibdeps -ldebian/$(package_wxbase_lib)/usr/lib:debian/$(package_wxbase_dbg)/usr/lib:debian/$(package_gtk_lib)/usr/lib:debian/$(package_gtk_dbg)/usr/lib
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+