File: rules

package info (click to toggle)
jdcal 1.0-1.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 76 kB
  • ctags: 27
  • sloc: python: 172; makefile: 8
file content (17 lines) | stat: -rwxr-xr-x 532 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

PYVERS = $(shell pyversions -vr)
PY3VERS = $(shell py3versions -vr)

# main packaging script based on dh7 syntax
%:
	dh $@ --with=python2,python3


override_dh_auto_install: ${PYVERS:%=python-install%} ${PY3VERS:%=python-install%}
python-install%:
	echo "$*" | grep -q '^3' && PY=3 || PY= ; \
        python$$PY setup.py install --install-layout=deb --root=$(CURDIR)/debian/python$$PY-jdcal