File: rules

package info (click to toggle)
libnet-ip-perl 1.26-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 464 kB
  • ctags: 280
  • sloc: perl: 1,321; makefile: 17
file content (26 lines) | stat: -rwxr-xr-x 408 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

PKG:=$(shell dh_listpackages)
TMP:=$(CURDIR)/debian/$(PKG)
EG:=$(TMP)/usr/share/doc/$(PKG)/examples

%:
	dh $@

override_dh_install:
	dh_install
	rm -rf $(TMP)/usr/bin

override_dh_installexamples:
	dh_installexamples
	sed -i -e'1s|#!perl|#!/usr/bin/perl|' $(EG)/ip*

override_dh_auto_test:
	mkdir $(CURDIR)/testout
	dh_auto_test

override_dh_clean:
	dh_clean
	rm -rf $(CURDIR)/testout