File: rules

package info (click to toggle)
xshipwars 1.32-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 17,176 kB
  • ctags: 6,357
  • sloc: ansic: 157,152; makefile: 226; sh: 75
file content (111 lines) | stat: -rwxr-xr-x 3,253 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
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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

# This is the debhelper compatability version to use.
export DH_COMPAT=1

build: build-stamp
build-stamp:
	dh_testdir
	cd client;make -f Makefile.Linux;cd ..
	cd server;make -f Makefile.Linux.Debian;cd ..
	cd monitor;make -f Makefile.Linux;cd ..
	cd unvedit;make -f Makefile.Linux;cd ..
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	cd client;make -f Makefile.Linux clean;cd ..
	cd server;make -f Makefile.Linux.Debian clean;cd ..
	cd monitor;make -f Makefile.Linux clean;cd ..
	cd unvedit;make -f Makefile.Linux clean;cd ..
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Install xshipwars client
	install -s -o root -g root -m 755 client/xsw \
			debian/tmp/usr/games/xshipwars
	install -p -o root -g root -m 644 client/mainmenu.conf \
			debian/tmp/etc/xshipwars/mainmenu.conf
	install -p -o root -g root -m 644 client/default.ocsn \
			debian/tmp/etc/xshipwars/default.ocsn
	install -p -o root -g root -m 644 client/.xshipwarsrc \
			debian/xshipwars-common/etc/xshipwars/xshipwarsrc
	cp -r client/images debian/tmp/usr/share/games/xshipwars/client/.

	# Install xshipwars monitor
	install -s -o root -g root -m 755 monitor/monitor \
			debian/tmp/usr/X11R6/bin/xshipwars-monitor
	cp -r monitor/images debian/tmp/usr/share/games/xshipwars/monitor/.

	# Install xshipwars server
	install -s -o root -g root -m 755 server/swserv \
			debian/xshipwars-server/usr/sbin/xshipwars-server
	install -p -o root -g root -m 644 server/default.conf \
			debian/xshipwars-server/etc/xshipwars/swserv.conf
	install -p -o root -g root -m 644 server/generic_in.unv \
			debian/xshipwars-server/var/games/xshipwars/db/generic_in.unv
	install -p -o root -g root -m 644 server/default.opm \
			debian/xshipwars-server/var/games/xshipwars/db/default.opm
	install -p -o root -g root -m 644 server/default.ocs \
			debian/xshipwars-server/var/games/xshipwars/db/default.ocs

	# Install unvedit
	install -s -o root -g root -m 755 unvedit/unvedit \
			debian/tmp/usr/X11R6/bin/xshipwars-unvedit
	cp -r unvedit/images debian/tmp/usr/share/games/xshipwars/unvedit/.

	touch install-stamp

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
#	dh_testversion
	dh_testdir
	dh_testroot
#	dh_installdebconf	
	dh_installdocs
#	dh_installexamples
	dh_installmenu
#	dh_installemacsen
#	dh_installpam
	dh_installinit
#	dh_installcron
	dh_installmanpages
	rm -r debian/{xshipwars-server,xshipwars-common}/usr/X11R6 debian/xshipwars-common/usr/share/man
	rm debian/xshipwars-server/usr/share/man/man7/xshipwars.*
	rm debian/tmp/usr/share/man/man7/xshipwars-server*
#	dh_installinfo
#	dh_undocumented
	dh_installchangelogs
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	# You may want to make some executables suid here.
	dh_suidregister
	dh_makeshlibs
	dh_installdeb
#	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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