File: rules

package info (click to toggle)
qlandkartegt 1.8.1%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 34,776 kB
  • ctags: 9,728
  • sloc: cpp: 137,036; ansic: 712; xml: 527; perl: 361; sh: 215; makefile: 58; python: 29
file content (37 lines) | stat: -rwxr-xr-x 930 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
33
34
35
36
37
#!/usr/bin/make -f

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)

MANPAGES := $(wildcard debian/man/*.*.xml)

export DEB_CXXFLAGS_MAINT_APPEND=-Wno-narrowing

# one ring to rule them all ...
%:
	dh $@ --parallel

overrid_dh_clean:
	dh_clean debian/man/*.1
	$(RM) -r src/icons/hicolor/

override_dh_auto_configure:
	cp -r debian/hicolor/ src/icons/
	dh_auto_configure -- -DGPX_EXTENSIONS:BOOL=TRUE \
	                     -DQK_QT5_PORT=1 \
	                     -DCMAKE_VERBOSE_MAKEFILE=1

override_dh_auto_build:
	# Create man page from DocBook XML
	for x in $(MANPAGES) ; do \
	    docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \
	    mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
	done

	dh_auto_build

override_dh_installchangelogs:
	dh_installchangelogs changelog.txt