File: rules

package info (click to toggle)
reprof 1.0.1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 43,116 kB
  • sloc: perl: 867; sh: 484; makefile: 58
file content (35 lines) | stat: -rwxr-xr-x 912 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
29
30
31
32
33
34
35
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_clean:
	find . -name Makefile -delete
	# restore reprof.spec which is removed in the build process
	if [ ! -e reprof.spec ] ; then sed 's/@VERSION@/$(DEB_VERSION_UPSTREAM)/' reprof.spec.in > reprof.spec ; fi
	dh_clean

override_dh_auto_build:
	# Build process somehow removes lib/RG/Reprof.pm
	# make sure it exists to be able to build twice in a row
	dh_auto_build
	if [ ! -e lib/RG/Reprof.pm ] ; then cp lib/RG/Reprof.pm.mk lib/RG/Reprof.pm ; fi


override_dh_auto_install:
	# The following will run: perl Build install
	dh_auto_install
	# But we also need this to get the correct script
	DESTDIR=$(CURDIR)/debian/tmp make install

override_dh_compress:
	dh_compress -Xexample.Q