File: rules

package info (click to toggle)
prjtrellis 1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 83,000 kB
  • sloc: cpp: 20,813; python: 16,246; sh: 375; makefile: 262; asm: 80; ansic: 58
file content (28 lines) | stat: -rwxr-xr-x 670 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
export DH_VERBOSE = 1

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

BUILDDIR=debian/build-$(DEB_HOST_GNU_TYPE)

%:
	dh $@ --sourcedirectory=libtrellis/ -B$(BUILDDIR) --with=python3

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

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

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