File: rules

package info (click to toggle)
python-weblib 1.1.0-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 260 kB
  • ctags: 514
  • sloc: python: 1,322; makefile: 46; sh: 27
file content (68 lines) | stat: -rwxr-xr-x 1,223 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

# Stolen and adapted from python-scientific

export DH_COMPAT=2
export SHELL=bash

pv	= 2.1
PYTHON	= python$(pv)

p_web	= python-weblib

d_web	= debian/$(p_web)

build: stamp-build
stamp-build:
	dh_testdir
	$(PYTHON) setup.py build
	touch stamp-build

install: build
	dh_testdir
	dh_testroot
	dh_clean -k

	dh_installdirs -p$(p_web) $(web_dirs)

	$(PYTHON) setup.py install --prefix=`pwd`/$(d_web)/usr

	-find $(d_web) -name '*.py[co]' | xargs rm -f

clean:
	dh_testdir
	-rm -rf `find -name build -type d`
	rm -f `find . -name '*.py[co]'`
	dh_clean

web_dirs = \
	usr/lib/python$(pv)/site-packages \
	usr/share/doc/$(p_web)/examples \
	usr/share/doc/$(p_web)/www

binary-indep: install
	dh_testdir
	dh_testroot

	cp -rp htdocs/* \
		$(d_web)/usr/share/doc/$(p_web)/www/

	dh_installdocs
	dh_installchangelogs doc/CHANGES.TXT
	dh_installexamples cgi-bin
	dh_compress -X.py -X.c
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_md5sums
	dh_builddeb

binary-arch:

binary: binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean checkroot