File: rules

package info (click to toggle)
python-bitbucket 0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 116 kB
  • ctags: 103
  • sloc: python: 266; makefile: 90
file content (17 lines) | stat: -rwxr-xr-x 451 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

APP=python-bitbucket
VERSION=$(shell head -n 1 debian/changelog | cut -f2 -d " " | tr -d "()" | cut -f1 -d "-")

ORIG_REPO=git clone https://github.com/ericof/python-bitbucket.git
ORIG_DIR=$(APP)-$(VERSION)
EXCLUDE=$(addprefix --exclude=, debian \*~ .hg .svn .git \*.pyc)

%:
	dh $@ --with python2


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