File: rules

package info (click to toggle)
dfdatetime 20190116-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 652 kB
  • sloc: python: 5,155; sh: 119; makefile: 30
file content (24 lines) | stat: -rwxr-xr-x 619 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
#!/usr/bin/make -f

%:
	dh $@ --buildsystem=python_distutils --with=python2,python3

.PHONY: override_dh_auto_clean
override_dh_auto_clean:
	dh_auto_clean
	rm -rf build dfdatetime.egg-info/SOURCES.txt dfdatetime.egg-info/PKG-INFO

.PHONY: override_dh_auto_build
override_dh_auto_build:
	dh_auto_build
	set -ex; for python in $(shell py3versions -r); do \
		$$python setup.py build; \
	done;

.PHONY: override_dh_auto_install
override_dh_auto_install:
	dh_auto_install --destdir $(CURDIR)
	set -ex; for python in $(shell py3versions -r); do \
		$$python setup.py install --root=$(CURDIR) --install-layout=deb; \
	done;