File: rules

package info (click to toggle)
reprof 1.0.1-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 43,120 kB
  • sloc: perl: 867; sh: 484; makefile: 59
file content (32 lines) | stat: -rwxr-xr-x 856 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
25
26
27
28
29
30
31
32
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DH_VERBOSE=1
export DH_OPTIONS=-v

include /usr/share/dpkg/default.mk

%:
	dh $@

execute_before_dh_auto_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

execute_after_dh_auto_build:
	# Build process somehow removes lib/RG/Reprof.pm
	# make sure it exists to be able to build twice in a row
	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