File: rules

package info (click to toggle)
ctdconverter 2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 324 kB
  • sloc: python: 1,186; xml: 28; makefile: 14; sh: 2
file content (32 lines) | stat: -rwxr-xr-x 1,118 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8
export PYBUILD_NAME = ctdconverter

include /usr/share/dpkg/default.mk
# this provides:
# DEB_SOURCE: the source package name
# DEB_VERSION: the full version of the package (epoch + upstream vers. + revision)
# DEB_VERSION_EPOCH_UPSTREAM: the package's version without the Debian revision
# DEB_VERSION_UPSTREAM_REVISION: the package's version without the Debian epoch
# DEB_VERSION_UPSTREAM: the package's upstream version
# DEB_DISTRIBUTION: the distribution(s) listed in the current entry of debian/changelog

# for hardening you might like to uncomment this:
# export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_build:
	2to3 --write --nobackups --no-diffs convert.py galaxy/ cwl/ common/
	dh_auto_build

debian/CTDConverter.1: debian/rules debian/CTDConverter.help2man
	help2man 'python3 convert.py' --include=debian/CTDConverter.help2man \
		--no-info --version-string="$(DEB_VERSION_UPSTREAM)" \
		--output=debian/CTDConverter.1

override_dh_installman: debian/CTDConverter.1
	dh_installman