File: rules

package info (click to toggle)
go2 1.20120217-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 212 kB
  • sloc: python: 1,186; makefile: 17; sh: 9
file content (23 lines) | stat: -rwxr-xr-x 564 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
#!/usr/bin/make -f

VERSION=$(shell head -n 1 debian/changelog | cut -f2 -d " " | tr -d "()" | cut -f1 -d "-")
APP=go2
ORIG_REPO=hg clone http://hg.savannah.nongnu.org/hgweb/go2
ORIG_DIR=$(APP)-$(VERSION)
EXCLUDE=--exclude=debian --exclude=\*~ --exclude=.hg --exclude=.svn --exclude=\*.pyc

%:
	dh $@ --with=python2

override_dh_auto_build:
	dh_auto_build
	rst2man go2.rst > go2.1

override_dh_auto_clean:
	dh_auto_clean
	-$(RM) go2.1

get-orig-source:
	$(ORIG_REPO) $(ORIG_DIR)
	tar $(EXCLUDE) -czf $(APP)_$(VERSION).orig.tar.gz $(ORIG_DIR)
	$(RM) -r $(ORIG_DIR)