File: rules

package info (click to toggle)
stgit 0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,752 kB
  • sloc: python: 10,558; sh: 5,739; lisp: 2,678; makefile: 142; perl: 42
file content (26 lines) | stat: -rwxr-xr-x 677 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
#!/usr/bin/make -f

export prefix = /usr
export PYTHON = python3
UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog -S Version | sed 's/.*://;s/-.*//')

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

override_dh_auto_clean:
	dh_auto_clean
	-rm stgit-completion.bash
	-rm stgit/commands/cmdlist.py
	-rm stgit/builtin_version.py

override_dh_auto_build:
	echo 'version = "$(UPSTREAM_VERSION)"' > stgit/builtin_version.py
	# build with pybuild and run make doc
	dh_auto_build
	make doc

override_dh_auto_install:
	# dh_auto install calls make pybuild install,
	dh_auto_install
	# also call make install-doc and make install-html
	DESTDIR=debian/stgit/ make install-doc install-html