File: rules

package info (click to toggle)
arriero 0.7~20161228-1%2Bbuild1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 460 kB
  • sloc: python: 4,676; sh: 295; makefile: 12
file content (22 lines) | stat: -rwxr-xr-x 579 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
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PYTHON3_VERSIONS = $(shell py3versions -r)
py3sdo = set -e; $(foreach py, $(PYTHON3_VERSIONS), $(py) $(1);)

%:
	dh $@ --with python3

# dh_auto_{build,install,clean} forcely use the python2 parts, which we are
# not building.
override_dh_auto_build:
	$(call py3sdo, setup.py build)

override_dh_auto_install:
	$(call py3sdo, setup.py install --root=$(CURDIR)/debian/arriero \
	    --install-layout=deb --install-data=/usr/share/arriero)

override_dh_auto_clean:
	rm -rf build
	rm -rf *.egg-info