- @for f in dirs docs menu postinst prerm; do \
- echo "generating control file $(package_gtk_py).$$f"; \
- sed -e 's/=PY/$(python_ver)/g;s/=V/$(release)/g;s/=SO/$(soversion)/g' \
- < debian/libwxgtk-python.$$f \
- > debian/$(package_gtk_py).$$f; \
+ @for f in docs postinst prerm; do \
+ echo "generating control file $(package_gtk_py_lib).$$f"; \
+ sed -e 's/=PY/$(python_ver)/g;s|=WXPYDIR|$(wxpydir)|g;' \
+ -e 's/=V/$(release)/g;s/=SOV/$(sorelease)/g' \
+ < debian/python-wxgtk.$$f \
+ > debian/$(package_gtk_py_lib).$$f; \
+ done;
+ @echo "generating control file $(package_gtk_py).menu"; \
+ sed -e 's/=SOV/$(sorelease)/g' < debian/python-wxtools.menu \
+ > debian/$(package_gtk_py).menu;
+ @for f in docs postinst; do \
+ echo "generating control file $(package_gtk_dbg_py).$$f"; \
+ sed -e 's/=PY/$(python_ver)/g;s/=V/$(release)/g;s/=SOV/$(sorelease)/g' \
+ < debian/python-wxgtk.$$f \
+ > debian/$(package_gtk_dbg_py).$$f; \