File: rules

package info (click to toggle)
psyco 1.5.1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,864 kB
  • ctags: 3,295
  • sloc: ansic: 24,491; python: 5,573; perl: 1,309; makefile: 166; sh: 1
file content (66 lines) | stat: -rwxr-xr-x 1,409 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

#PYVERS:= $(shell pyversions -v -r debian/control)
PYVERS:=$(sort $(shell pyversions -vr) 2.5)
PYCURR:=$(shell pyversions -d)
PACKDIR=debian/python-psyco
MKHOWTO:=/usr/lib/$(PYCURR)/doc/tools/mkhowto

build: build-stamp
build-stamp: $(PYVERS:%=build-stamp-%)
	touch $@

build-stamp-%:
	dh_testdir
	python$* setup.py build
	touch $@

build-indep: 

clean: 
	dh_testdir
	rm -f build-stamp* install-stamp* install-indep-stamp build-indep-stamp
	rm -rf build $(PACKDIR)
	dh_clean

install: install-stamp
install-stamp: build $(PYVERS:%=install-stamp-%)
	dh_testdir
	dh_testroot
	dh_installdirs -a
#	cd debian ; uudecode icons.tgz.uu ; tar xzf icons.tgz ; cd ..
	dh_install -a
#	rm debian/python-psyco-doc/usr/share/doc/python-psyco-doc/py-utils/.cvsignore
	touch $@

install-stamp-%: build-stamp-%
	dh_testdir
	dh_testroot
	python$* setup.py install --prefix=$(PACKDIR)/usr --no-compile
	touch $@

binary-indep:

binary-arch: build install
	dh_testdir -a
	dh_testroot -a
	dh_pycentral -ppython-psyco
	dh_python  -ppython-psyco
	dh_installdocs -a
	dh_installexamples -a
	dh_installchangelogs -a
	dh_link -a
	dh_strip -a
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_shlibdeps -a 
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

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