File: rules

package info (click to toggle)
libnet-ip-perl 1.26-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 468 kB
  • sloc: perl: 1,321; makefile: 17
file content (24 lines) | stat: -rwxr-xr-x 406 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
#!/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