File: rules

package info (click to toggle)
lsm 1.0.21-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 448 kB
  • sloc: ansic: 3,883; sh: 318; makefile: 62
file content (28 lines) | stat: -rwxr-xr-x 588 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
#!/usr/bin/make -f
# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

#DEBUG=true
PREFIX=/usr
SCRIPTDIR=${PREFIX}/lib/foolsm

%:
	dh $@

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
override_dh_auto_build:
	docbook-to-man debian/foolsm.sgml > debian/foolsm.1
endif

override_dh_installchangelogs:
	dh_installchangelogs debian/upstream/changelog

override_dh_auto_install:
	dh_auto_install -- PREFIX=${PREFIX} SCRIPTDIR=${SCRIPTDIR}

override_dh_installinit:
	dh_installinit --no-start

override_dh_auto_clean:
	rm -f debian/foolsm.1
	dh_auto_clean