File: rules

package info (click to toggle)
debconf 1.5.74
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,808 kB
  • sloc: perl: 8,358; sh: 290; makefile: 145; python: 129
file content (32 lines) | stat: -rwxr-xr-x 996 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /usr/bin/make -f

# Ensure that builds are self-hosting, which means I have to use the .pm
# files in this package, not any that may be on the system.
export PERL5LIB=.

%:
	dh $@ --with python3

override_dh_auto_install:
	$(MAKE) prefix=`pwd`/debian/debconf-utils install-utils
	$(MAKE) prefix=`pwd`/debian/debconf-i18n install-i18n
	$(MAKE) prefix=`pwd`/debian/python3-debconf install-python3
	$(MAKE) prefix=`pwd`/debian/debconf install-rest

override_dh_installdocs:
	dh_installdocs -Ndebconf-doc --link-doc=debconf
	dh_installdocs -pdebconf-doc

override_dh_installdebconf:
	# Don't modify postrm, I purge differently than normal packages
	# using me
	dh_installdebconf -n

override_dh_installchangelogs:
	# Changelog reduction hack for debconf. Only include top 100 entries.
	perl -ne '$$c++ if /^debconf /; last if $$c > 100 ; print $$_' \
		< debian/changelog > debian/debconf.changelog
	dh_installchangelogs

override_dh_compress:
	dh_compress -X demo.templates -X tutorial.templates