File: rules

package info (click to toggle)
penguineyes 0.10-22
  • links: PTS
  • area: main
  • in suites: woody
  • size: 736 kB
  • ctags: 219
  • sloc: ansic: 1,928; sh: 346; makefile: 124
file content (124 lines) | stat: -rwxr-xr-x 3,681 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Modified by Christian Kurz.

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

### "debug" support
# this hack is here because automake sucks
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
# compile with debugging information and don't optimize
export CC_OPTIMIZE = -g
else
# compile without debugging information and do optimize
export CC_OPTIMIZE = -O2
endif

export DH_COMPAT=3

export CFLAGS=$(shell gnome-config --cflags gnome glib)

build:	build-gnome build-non penguineyes.6

# ugly hack to change the section of the manpage
penguineyes.6:
	ln -s penguineyes.1 penguineyes.6

build-gnome:	build-gnome-stamp
build-gnome-stamp:
	dh_testdir
	mkdir build-gnome
	cd build-gnome && ( set -e && \
	../configure --prefix=/usr --bindir=/usr/games \
	             --sharedstatedir=/usr/share --enable-gnome && \
	make )
	touch build-gnome-stamp

build-non:	build-non-stamp
build-non-stamp:
	dh_testdir
	mkdir build-non
	cd build-non && ( set -e && \
	../configure --prefix=/usr --bindir=/usr/games \
	             --sharedstatedir=/usr/share --disable-gnome && \
	make )
	touch build-non-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -Rf build-gnome
	rm -f build-gnome-stamp
	rm -Rf build-non
	rm -f build-non-stamp
	rm -fr debian/*~
	-rm -f penguineyes.6
	dh_clean
	-$(MAKE) -i clean

binary-indep: build

binary-arch: build
	debian/rules binary-penguineyes DH_OPTIONS="-ppenguineyes"
	debian/rules binary-penguineyes-gnome DH_OPTIONS="-ppenguineyes-gnome"

binary-penguineyes: 
# Building non-gnome version
	dh_testdir
	dh_testroot
	dh_installdirs /usr/share/doc/penguineyes
	dh_installdirs /usr/games /usr/share/penguineyes/Config
	dh_installdirs /usr/share/penguineyes/Default
	dh_installdirs /DEBIAN
	install build-non/src/penguineyes debian/penguineyes/usr/games
	install -m 644 data/*.png data/*.xpm debian/penguineyes/usr/share/penguineyes/Default
	install -m 644 data/penguineyesrc debian/penguineyes/usr/share/penguineyes/Config
	install -m 644 debian/deb-icon.xpm debian/penguineyes/usr/share/penguineyes
	dh_installdocs TODO README THEMES
	dh_installchangelogs NEWS
	dh_installman penguineyes.6
	dh_installmenu
	chown -R root.root debian/penguineyes
	dh_strip 
	dh_compress 
	dh_installdeb 
	dh_fixperms
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-penguineyes-gnome:
# Building GNOME version
	dh_testdir
	dh_testroot
	dh_installdirs /etc/CORBA/servers /usr/share/applets/Amusements
	dh_installdirs /usr/share/pixmaps/penguineyes-gnome
	dh_installdirs /usr/games /usr/share/penguineyes/Config
	dh_installdirs /usr/share/penguineyes/Default
	dh_installdirs /DEBIAN
	install build-gnome/src/penguineyes debian/penguineyes-gnome/usr/games
	install -m 644 data/*.png data/*.xpm debian/penguineyes-gnome/usr/share/penguineyes/Default
	install -m 644 data/penguineyesrc debian/penguineyes-gnome/usr/share/penguineyes/Config
	install -m 644 penguineyes_applet.gnorba debian/penguineyes-gnome/etc/CORBA/servers
	install -m 644 penguineyes_applet.desktop debian/penguineyes-gnome/usr/share/applets/Amusements
	install -m 644 penguinize.png debian/penguineyes-gnome/usr/share/pixmaps/penguineyes-gnome/
	install -m 644 debian/deb-icon.xpm debian/penguineyes-gnome/usr/share/penguineyes
	dh_installdocs -A TODO README THEMES
	dh_installchangelogs -A NEWS
	dh_installman penguineyes.6
	dh_installmenu
	chown -R root.root debian/penguineyes-gnome
	dh_strip
	dh_compress
	dh_installdeb
	dh_fixperms
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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