File: rules

package info (click to toggle)
breadability 0.1.20-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 316 kB
  • ctags: 282
  • sloc: python: 1,713; makefile: 18
file content (26 lines) | stat: -rwxr-xr-x 767 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
25
26
#!/usr/bin/make -f

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
NOSE=nosetests

%:
	dh $* --with python2 --buildsystem=python_distutils

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.rst

override_dh_auto_install:
	dh_auto_install
	# Don't install tests, they don't work.
	rm -f debian/python-breadability/usr/bin/breadability_test*
	rm -rf debian/python-breadability/usr/lib/python*/dist-packages/tests/
	# Don't install version-specific binary
	rm -f debian/python-breadability/usr/bin/breadability-*

override_dh_auto_clean:
	dh_auto_clean
	rm -f .noseids .coverage
	rm -rf breadability.egg-info/