File: rules

package info (click to toggle)
prjpeppercorn 1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,756 kB
  • sloc: python: 5,518; cpp: 2,634; makefile: 37; sh: 15
file content (27 lines) | stat: -rwxr-xr-x 631 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
#!/usr/bin/make -f
export DH_VERBOSE = 1

include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/architecture.mk

%:
	dh $@ --sourcedirectory=libgm/ --with=python3

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCURRENT_GIT_VERSION=$(DEB_VERSION) \
		-DSTATIC_BUILD=OFF

HELP2MAN_FLAGS := \
    --name="Project Peppercorn" \
    --version-string="$(DEB_VERSION)" \
    --section=1 \
    --manual="General Commands" \
    --no-info \
    --no-discard-stderr

override_dh_installman:
	for exe in debian/tmp/usr/bin/*; do \
	    help2man $(HELP2MAN_FLAGS) $$exe > debian/tmp/$$(basename $$exe).1; \
	done
	dh_installman