File: rules

package info (click to toggle)
python-docxcompose 1.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,100 kB
  • sloc: python: 2,336; makefile: 14; xml: 5; sh: 3
file content (22 lines) | stat: -rwxr-xr-x 564 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
#!/usr/bin/make -f

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

export PYBUILD_NAME = docxcompose

%:
	dh $@ --buildsystem pybuild

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

override_dh_installman: debian/docxcompose.1

execute_after_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 > $@