File: rules

package info (click to toggle)
python-twitter 0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 396 kB
  • ctags: 344
  • sloc: python: 1,807; makefile: 39
file content (46 lines) | stat: -rwxr-xr-x 992 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f
PYVERS=$(shell pyversions -r)
d=debian/python-twitter

build: 

clean:
	dh_testdir
	for python in $(PYVERS); do  \
	    $$python setup.py clean; \
	done
	rm -rf build-stamp build
	rm -rf $(d)
	dh_clean install-stamp

install: build install-stamp
install-stamp:
	dh_testdir
	dh_testroot
	dh_installdirs
	set -e; \
	for python in $(PYVERS); do \
	    $$python setup.py install --root=$(d);\
	done

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs 
	dh_installchangelogs CHANGES
	dh_installman
	dh_compress -X.py
	install -m 755 $(CURDIR)/examples/tweet.py $(CURDIR)/$(d)/usr/bin/tweet
	install -m 755 $(CURDIR)/examples/twitter-to-xhtml.py $(CURDIR)/$(d)/usr/bin/twitter-to-xhtml
	dh_fixperms
	dh_pysupport
	sed -i -e '1,2d' $(CURDIR)/$(d)/usr/share/python-support/python-twitter/twitter.py 
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch:

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install