File: rules

package info (click to toggle)
pkg-perl-tools 0.85
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 796 kB
  • sloc: perl: 3,254; sh: 3,244; makefile: 144; python: 18
file content (28 lines) | stat: -rwxr-xr-x 768 bytes parent folder | download | duplicates (3)
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
27
28
#!/usr/bin/make -f
# vim: set noet ft=make
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

APT=$(CURDIR)/debian/pkg-perl-autopkgtest/usr/share/pkg-perl-autopkgtest
SCRIPTS=$(CURDIR)/debian/pkg-perl-tools/usr/share/pkg-perl-tools/lib

%:
	dh $@

override_dh_clean:
	# preserve test data (*.orig)
	dh_clean -Xt/patchedit/

override_dh_auto_install:
# dh_auto_install sets INSTALL to "INSTALL=install --strip-program=true"
# which leads to
# 1) install: WARNING: ignoring --strip-program option as -s option was not specified
# 2) W: pkg-perl-tools: executable-not-elf-or-script $file
	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp

override_dh_fixperms:
	dh_fixperms
	chmod +x $(APT)/* $(APT)/*/*
	chmod +x $(SCRIPTS)/guess-nocheck.pl