File: rules

package info (click to toggle)
procserv 2.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,356 kB
  • sloc: sh: 4,154; cpp: 1,715; ansic: 1,417; python: 870; makefile: 65
file content (31 lines) | stat: -rwxr-xr-x 923 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifeq ($(filter nodoc, $(DEB_BUILD_PROFILES)),)
	# Rebuild the docs to propagate procServ.txt patch
	ENABLE_DOCS_FLAG=--enable-doc=yes

	# Disable parallelism to prevent unsafe concurrent writes to procServ.xml by
	# different a2x processes
	AUTO_BUILD_FLAGS=-O--no-parallel
else
	ENABLE_DOCS_FLAG=--enable-doc=no
endif

%:
	dh $@ --buildsystem=autoconf

override_dh_auto_configure:
	dh_auto_configure -- --docdir=\$${prefix}/share/doc/procserv $(ENABLE_DOCS_FLAG)

override_dh_auto_build:
	dh_auto_build $(AUTO_BUILD_FLAGS)

execute_after_dh_auto_install:
	# Remove extra ChangeLog and COPYING files installed by upstream make
	rm $(CURDIR)/debian/procserv/usr/share/doc/procserv/ChangeLog
	rm $(CURDIR)/debian/procserv/usr/share/doc/procserv/COPYING

	# Remove non-descriptive release note file
	rm $(CURDIR)/debian/procserv/usr/share/doc/procserv/NEWS