File: rules

package info (click to toggle)
python-pymetar 0.19-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 148 kB
  • ctags: 80
  • sloc: python: 767; makefile: 12
file content (22 lines) | stat: -rwxr-xr-x 594 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

# The following build/clean commands are a gross hack to work around the
# missing statement to install documentation in python's setup.py. Upstream
# copies them into gentoo's doc path using data_files, but we're going to
# ignore that and install the documentation via debhelper.
build:
	perl -ane '$$p="##" if/data_files/;print $$p,$$_;$$p="" if/],?$$/' -i setup.py
	dh $@ --with python2

clean:
	dh $@ --with python2
	perl -ane 's/^##+//;print' -i setup.py

%:
	dh $@ --with python2

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build/

.PHONY: override_dh_auto_clean