File: rules

package info (click to toggle)
flit 2.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,120 kB
  • sloc: python: 4,019; makefile: 167; sh: 16
file content (39 lines) | stat: -rwxr-xr-x 748 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
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export FLIT_NO_NETWORK=True
export FLIT_ROOT_INSTALL=1
export pkgversion=$(shell dpkg-parsechangelog --show-field version)

%:
	dh $@ --with python3

override_dh_auto_configure:

override_dh_auto_build:

override_dh_auto_install:
	cp debian/build.py .
	python3 build.py
	rm -f build.py
	dh_install

override_dh_python3:
	dh_python3 -p flit

override_dh_installman:
	PYTHONPATH=$(CURDIR) help2man -n flit -s 1 \
		-o debian/flit.1 \
		--version-string=$(pkgversion) \
		--no-discard-stderr --no-info \
		debian/flit/usr/bin/flit
	dh_installman

override_dh_auto_clean:
	dh_clean

override_dh_auto_test:
	# Tests require unpackaged modules to run