File: rules

package info (click to toggle)
apt-listchanges 3.10
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,088 kB
  • ctags: 218
  • sloc: python: 1,382; xml: 528; makefile: 136; sh: 64; perl: 61
file content (19 lines) | stat: -rwxr-xr-x 560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

%:
	dh $@ --with python3

debian/%: debian/%.in debian/debconf-helper.py debian/rules
	sed -e '/#DEBCONF_HELPER_PY#/ { ' -e 'r debian/debconf-helper.py' -ed -e' }' < $< > $@
	echo >> $@
	echo 'exit 0' >> $@
	echo '# Make lintian happy' >> $@
	sed -ne "s/^.*'\(apt.*\)' *: *_handle.*$$/db_get \1/p" < debian/debconf-helper.py >> $@
	chmod 444 $@

override_dh_auto_clean:
	rm -f debian/postinst debian/config
	dh_auto_clean

override_dh_auto_install: debian/postinst debian/config
	$(MAKE) install DESTDIR=$(shell pwd)/debian/apt-listchanges