File: rules

package info (click to toggle)
phat 1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,952 kB
  • sloc: cpp: 3,170; python: 389; ansic: 144; sh: 33; makefile: 11
file content (21 lines) | stat: -rwxr-xr-x 486 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
#!/usr/bin/make -f

#export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_NAME = phat

# To avoid autodetecting upstream's CMakeFile, which doesn't build the
# Python extension.
export PYBUILD_SYSTEM = distutils

%:
	dh $@ --buildsystem=cmake --builddirectory=build
	dh $@ --with python3 --buildsystem=pybuild

execute_after_dh_auto_build: build/phat.1

execute_before_dh_auto_clean:
	rm -f build/phat.1

build/phat.1: debian/phat.1.scd
	scdoc < $< > $@