File: rules

package info (click to toggle)
cfget 0.19-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 196 kB
  • sloc: python: 638; sh: 77; makefile: 18
file content (29 lines) | stat: -rwxr-xr-x 629 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
27
28
29
#!/usr/bin/make -f

# This file was automatically generated by stdeb 0.8.2 at
# Fri, 24 Oct 2014 16:30:51 +0200
export PYBUILD_NAME=cfget
%:
	dh $@ --with python2 --buildsystem=pybuild


VERSION=$(shell debian/vercheck)

override_dh_auto_install:
	dh_auto_install
	# Remove egg-info cruft installed by setup.py
	rm -rf debian/cfget/usr/lib

vercheck:
	debian/vercheck > /dev/null

origsrc: vercheck
	test -f cfget.1 || ./update-manpage
	python setup.py sdist
	mv dist/cfget-$(VERSION).tar.gz ../cfget_$(VERSION).orig.tar.gz
	rm -r dist
	rm -f MANIFEST

debsrc: origsrc
	fakeroot debian/rules clean
	debuild -S -us -uc -rfakeroot