File: rules

package info (click to toggle)
anfo 0.98-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,256 kB
  • sloc: sh: 10,041; cpp: 8,548; ansic: 530; lisp: 337; makefile: 64
file content (30 lines) | stat: -rwxr-xr-x 687 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
#!/usr/bin/make -f
# -*- makefile -*-

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

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh  $@

override_dh_install:
	d-shlibmove --commit \
		    --multiarch \
		    --movedev debian/tmp/usr/include/* usr/include \
		    debian/tmp/usr/lib/*/libanfo.so
	find debian -name "lib*.la" -delete
	dh_install

override_dh_installman:
	dh_installman
	# delete unused manpage
	find debian/anfo -name anfo-sge.1 -delete

# ./scm files should not be executable
override_dh_fixperms:
	dh_fixperms
	find debian/anfo -perm -5 -type f \( -name '*.scm' \)  -print0 2>/dev/null | xargs -0r chmod 644