File: rules

package info (click to toggle)
speedcrunch 0.12.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 14,160 kB
  • sloc: cpp: 17,603; ansic: 14,719; python: 569; sh: 236; xml: 135; makefile: 23
file content (22 lines) | stat: -rwxr-xr-x 556 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

DPKG_EXPORT_BUILDFLAGS=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all reproducible=+all
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --buildsystem=cmake --sourcedirectory=src

docs:
	mkdir -p build-docs
	cd build-docs && cmake ../doc/src
	make -C build-docs

override_dh_auto_configure: docs
	dh_auto_configure -- -DHTML_DOCS_DIR=../build-docs

override_dh_auto_build:
	dh_auto_build -- VERBOSE=1
	docbook2x-man debian/speedcrunch.1.docbook
	convert -resize 32x32 src/resources/speedcrunch.png speedcrunch.xpm