File: rules

package info (click to toggle)
python-a38 0.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 440 kB
  • sloc: python: 4,065; xml: 174; makefile: 80; sh: 14
file content (27 lines) | stat: -rwxr-xr-x 606 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
#!/usr/bin/make -f

export PYBUILD_NAME=a38

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

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

override_dh_auto_install: debian/a38tool.1
	dh_auto_install

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	set -ex; for py in `py3versions --supported 2>/dev/null`; do \
	    $${py} -m nose2 ; \
	done
endif

debian/a38tool.1:
	help2man \
	    -n 'Handle fattura elettronica files' \
	    --output=debian/a38tool.1 \
	    --no-info --no-discard-stderr \
	    --version-string=$(DEB_VERSION) \
	    --include debian/a38tool.man.include \
	    ./a38tool