File: rules

package info (click to toggle)
skencil 0.6.17-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,136 kB
  • ctags: 8,589
  • sloc: python: 36,672; ansic: 16,571; sh: 151; makefile: 92
file content (99 lines) | stat: -rwxr-xr-x 2,332 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/make -f

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

include /usr/share/dpatch/dpatch.make

configure: configure-stamp
configure-stamp: patch-stamp
	dh_testdir

	# Configuring package
	python setup.py configure --with-nls

	touch configure-stamp

build: build-stamp
build-stamp: configure-stamp
	dh_testdir

	# Building package
	python setup.py build

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	# Cleaning package
	-$(MAKE) -C Filter clean
	-$(MAKE) -C Pax clean
	-$(MAKE) -C Sketch/Modules clean
	-find . -name "Makefile" -o -name "Makefile.pre" -o -name '*.pyc' -o -name '*.so' | xargs rm -f

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Installing package
	python setup.py install --prefix=/usr --dest-dir=$(CURDIR)/debian/skencil

	# Installing documentation
	install -d -m 0755 debian/skencil/usr/share/doc/skencil
	cp -a Doc debian/skencil/usr/share/doc/skencil/html
	cp -a Examples debian/skencil/usr/share/doc/skencil/examples
	cp -a Tools debian/skencil/usr/share/doc/skencil/tools

	# Installing icon
	install -d -m 0755 debian/skencil/usr/share/icons
	uudecode debian/icon/skencil.png.uu -o debian/skencil/usr/share/icons/skencil.png

	# Installing pixmap
	install -D -m 0644 debian/pixmap/skencil.xpm debian/skencil/usr/share/pixmaps/skencil.xpm
	
	# Installing desktop file
	install -D -m 0644 debian/desktop/skencil.desktop debian/skencil/usr/share/applications/skencil.desktop

	# Fixing permissions
	chmod 0644 debian/skencil/usr/share/doc/skencil/examples/*

	# Removing double files
	rm -f debian/skencil/usr/share/doc/skencil/tools/COPYING

	# Installing lintian overrides
	for LINTIAN in debian/lintian/*; \
	do \
		install -D -m 644 $$LINTIAN debian/`basename $$LINTIAN`/usr/share/lintian/overrides/`basename $$LINTIAN` || exit 1; \
	done

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs
	dh_install
	dh_movefiles --sourcedir=debian/skencil
	dh_installmenu
	dh_installman
	dh_link
	dh_strip
	dh_compress -Xexamples -Xtools
	dh_fixperms
	dh_pysupport
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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