File: rules

package info (click to toggle)
libterm-vt102-perl 0.91-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 272 kB
  • ctags: 96
  • sloc: perl: 2,471; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 461 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
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_install:
	dh_install
	rm -rf $(TMP)/usr/share/perl5/Term/VT102

override_dh_installexamples:
	dh_installdirs $(EXAMPLES)
	cp VT102/examples/* $(TMP)/$(EXAMPLES)
	chmod a+x $(TMP)/$(EXAMPLES)/*
	sed -i -e's|^;#!/usr/bin/perl|#!/usr/bin/perl|' $(TMP)/$(EXAMPLES)/*

override_dh_compress:
	dh_compress -Xexamples