| 1 |
#! /usr/bin/make -f |
| 2 |
|
| 3 |
# Ensure that builds are self-hosting, which means I have to use the .pm |
| 4 |
# files in this package, not any that may be on the system. |
| 5 |
export PERL5LIB=. |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ --with python3 |
| 9 |
|
| 10 |
override_dh_auto_install: |
| 11 |
$(MAKE) prefix=`pwd`/debian/debconf-utils install-utils |
| 12 |
$(MAKE) prefix=`pwd`/debian/debconf-i18n install-i18n |
| 13 |
$(MAKE) prefix=`pwd`/debian/python3-debconf install-python3 |
| 14 |
$(MAKE) prefix=`pwd`/debian/debconf install-rest |
| 15 |
|
| 16 |
override_dh_installdocs: |
| 17 |
dh_installdocs -Ndebconf-doc --link-doc=debconf |
| 18 |
dh_installdocs -pdebconf-doc |
| 19 |
|
| 20 |
override_dh_installdebconf: |
| 21 |
# Don't modify postrm, I purge differently than normal packages |
| 22 |
# using me |
| 23 |
dh_installdebconf -n |
| 24 |
|
| 25 |
execute_before_dh_installchangelogs: |
| 26 |
# Changelog reduction hack for debconf. Only include top 100 entries. |
| 27 |
perl -ne '$$c++ if /^debconf /; last if $$c > 100 ; print $$_' \ |
| 28 |
< debian/changelog > debian/debconf.changelog |
| 29 |
|
| 30 |
override_dh_compress: |
| 31 |
dh_compress -X demo.templates -X tutorial.templates |