File: rules

package info (click to toggle)
python-bobopos 2.1-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 236 kB
  • ctags: 220
  • sloc: python: 1,774; makefile: 38; sh: 24
file content (58 lines) | stat: -rwxr-xr-x 1,329 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
#! /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.

package=python-bobopos
pyversion=1.5
i=./debian/tmp

build:
	dh_testdir
	touch build

clean:
	dh_testdir
	-rm -f build
	-find . -name '*.py[co]' | xargs rm -f
	-rm -rf $(i) debian/files* core debian/substvars

instdirs = \
	usr/lib/python$(pyversion)/site-packages/BoboPOS \
	usr/doc/$(package) \
	usr/share/doc-base

binary-indep: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs $(instdirs)

	for f in BoboPOS/*.py; do \
	  sed -e '/^#!/s,/usr/local,/usr,' $$f \
	    > $(i)/usr/lib/python$(pyversion)/site-packages/$$f; \
	done

	dh_installdocs BoboPOS.html Persistence.html BoboPOS.stx release.notes release.html BobobaseArchitecture.gif
	dh_installchangelogs
	-find $(i) -name '*.py[co]' -o -name '*?~' | xargs rm -f
	install -m 644 debian/doc-base $(i)/usr/share/doc-base/$(package)
	dh_fixperms
	dh_compress
	dh_installdeb
	dh_gencontrol
#	dh_makeshlibs
	dh_md5sums
	dh_builddeb

binary-arch: build
	dh_testdir
# 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