File: rules

package info (click to toggle)
libexpect-perl 1.38-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 444 kB
  • sloc: perl: 1,818; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)
EXAMPLES= $(TMP)/usr/share/doc/$(PACKAGE)/examples

%:
	dh $@

override_dh_installexamples:
	dh_installexamples
	sed -i -e'1 s,^#!/usr/local/bin/perl\b,#!/usr/bin/perl,' \
	    $$(find $(EXAMPLES) -type f)

override_dh_fixperms:
	dh_fixperms
	chmod -x \
	    $$(find $(EXAMPLES) -type f -not -name "*.pl")