File: rules

package info (click to toggle)
python-gdata 2.0.17%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,080 kB
  • sloc: python: 73,579; ansic: 150; sh: 33; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 508 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

DEB_DIRECTORY = $(dir $(firstword $(MAKEFILE_LIST)))
DEB_VERSION = $(word 2,$(shell cd $(DEB_DIRECTORY)/.. && dpkg-parsechangelog | grep ^Version:))
UPSTREAM_DFSG_VERSION = $(firstword $(subst -, ,$(DEB_VERSION)))

%:
	dh $@ --with python2

override_dh_installchangelogs:
	dh_installchangelogs RELEASE_NOTES.txt

override_dh_compress:
	dh_compress -X.py -X.js -X.c

get-orig-source:
	sh $(DEB_DIRECTORY)/get-orig-source.sh $(UPSTREAM_DFSG_VERSION)