File: rules

package info (click to toggle)
pystache 0.6.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 956 kB
  • sloc: python: 3,052; makefile: 26; sh: 15
file content (25 lines) | stat: -rwxr-xr-x 725 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=pystache

%:
	dh $@ --buildsystem=pybuild

override_dh_installchangelogs:
	dh_installchangelogs $(CURDIR)/HISTORY.md

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3
	mv -f $(CURDIR)/debian/python3-pystache/usr/bin/pystache $(CURDIR)/debian/python3-pystache/usr/bin/pystache3
	find $(CURDIR)/debian -name pystache-test -type f -delete
	find $(CURDIR)/debian -name tests -type d | xargs rm -rf
	find $(CURDIR)/debian -name "HISTORY.md*" -delete

override_dh_auto_test:
	set -e ;\
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="{interpreter} $(CURDIR)/pystache/commands/test.py" \
	dh_auto_test