File: rules

package info (click to toggle)
recutils 1.9-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,328 kB
  • sloc: ansic: 80,756; sh: 11,649; yacc: 1,978; makefile: 323; lex: 225; sed: 16
file content (29 lines) | stat: -rwxr-xr-x 756 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

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

DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_CFLAGS_MAINT_APPEND = -Wno-error=incompatible-pointer-types
DEB_CFLAGS_MAINT_APPEND += -Wno-error=implicit-function-declaration

export DEB_BUILD_MAINT_OPTIONS DEB_CFLAGS_MAINT_APPEND

%:
	dh $@

override_dh_auto_clean:
	[ ! -f Makefile ] || make clean

override_dh_install:
	chrpath -d debian/tmp/usr/bin/* debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.so.[0-9].*
	mv debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/readrec.so.0.0.0 \
		debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/readrec.so
	dh_install

override_dh_makeshlibs:
	dh_makeshlibs -Xreadrec.so

override_dh_compress:
	dh_compress -Xmovies -Xtool -Xpassword