File: rules

package info (click to toggle)
python-pmw 0.8.5-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,820 kB
  • ctags: 3,468
  • sloc: python: 14,898; makefile: 37; sh: 17
file content (54 lines) | stat: -rwxr-xr-x 1,435 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
#! /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.

export DH_COMPAT=3

packagedoc=python-pmw-doc
package_dir=./debian/python-pmw
pdoc=./debian/python-pmw-doc
v=Pmw_0_8_5

build:
	dh_testdir
	touch build

clean:
	dh_testdir
	-rm -f build
	dh_clean -i

binary-indep: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs -Ai
	mkdir -p $(package_dir)/usr/lib/python2.1/site-packages/Pmw/$(v)
	mkdir -p $(pdoc)/usr/share/doc/$(packagedoc)/examples
	dh_installdocs -Ai README
	dh_installchangelogs -i $(v)/doc/changes.html
	install -m 644 __init__.py $(package_dir)/usr/lib/python2.1/site-packages/Pmw/
	install -m 644 $(v)/__init__.py \
		$(package_dir)/usr/lib/python2.1/site-packages/Pmw/$(v)/
	cp -pr $(v)/lib $(package_dir)/usr/lib/python2.1/site-packages/Pmw/$(v)/
	install -m 644 $(v)/demos/* $(pdoc)/usr/share/doc/$(packagedoc)/examples/
	cp -pr $(v)/doc $(pdoc)/usr/share/doc/$(packagedoc)/html
	dh_fixperms -i
	dh_compress -AiX.py
	chmod a+x $(pdoc)/usr/share/doc/$(packagedoc)/examples/All.py
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch:
# There are no architecture-dependent files to be uploaded
# generated by this package.  If there were any they would be
# made here.


# Below here is fairly generic really

binary:	binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean