File: rules

package info (click to toggle)
debiancontributors 0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 264 kB
  • ctags: 175
  • sloc: python: 1,518; makefile: 11
file content (16 lines) | stat: -rwxr-xr-x 511 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

srcname = debiancontributors
version = $(shell sed -nre 's/.*version[ ]*=[ ]*"([^"]+)".*/\1/p' setup.py)

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

override_dh_auto_build:
	dh_auto_build
	COLUMNS=200 help2man --name='Manage contributions to contributors.debian.org' --section=1 --version-string="$(version)" --no-info ./dc-tool > dc-tool.1

debsrc:
	python setup.py sdist
	mv dist/$(srcname)-$(version).tar.gz ../$(srcname)_$(version).orig.tar.gz
	git-buildpackage -S -us -uc