File: rules

package info (click to toggle)
python-docxcompose 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,012 kB
  • sloc: python: 2,337; makefile: 16; xml: 5; sh: 3
file content (24 lines) | stat: -rwxr-xr-x 602 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
#!/usr/bin/make -f

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

export PYBUILD_NAME=docxcompose

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

override_dh_auto_test:
	LC_TIME=C dh_auto_test -- --test-pytest

override_dh_installman: debian/docxcompose.1
	dh_installman

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docxcompose.egg-info

debian/docxcompose.1:
	PYTHONPATH=$$(find debian -name dist-packages | xargs echo | tr ' ' :) help2man \
		debian/python3-docxcompose/usr/bin/docxcompose \
		--name 'compose multiple docx files into one file' \
		--version-string $(DEB_VERSION_UPSTREAM) --no-info > $@