File: rules

package info (click to toggle)
libio-pager-perl 2.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 284 kB
  • sloc: perl: 1,416; makefile: 14
file content (19 lines) | stat: -rwxr-xr-x 479 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

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

execute_after_dh_auto_install:
	$(RM) -v $(TMP)/usr/share/perl5/IO/Pager/tp \
		$(TMP)/usr/bin/tp \
		$(TMP)/usr/share/man/man1/tp.1p
	rmdir --verbose --parents --ignore-fail-on-non-empty \
		$(TMP)/usr/bin/ \
		$(TMP)/usr/share/man/man1/

execute_after_dh_installexamples:
	sed -i '1s|^#!/usr/local/bin/perl|#!/usr/bin/perl|' \
		$(TMP)/usr/share/doc/$(PACKAGE)/examples/*