File: rules

package info (click to toggle)
backupchecker 1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 6,384 kB
  • sloc: python: 8,568; makefile: 161
file content (27 lines) | stat: -rwxr-xr-x 530 bytes parent folder | download | duplicates (3)
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

PYTHON3=$(shell py3versions -vr)

%:
	dh $@ --with python3

override_dh_auto_build:
	set -ex; for py in $(PYTHON3) ; do \
		python$$py setup.py build; \
	done

override_dh_auto_install:
	set -ex; for py in $(PYTHON3) ; do \
		python$$py setup.py install --skip-build \
		                            --root=$(CURDIR)/debian/tmp \
		                            --install-layout=deb; \
	done

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3

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