File: rules

package info (click to toggle)
crossfire 1.11.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 24,456 kB
  • ctags: 7,800
  • sloc: ansic: 80,483; sh: 11,825; perl: 2,327; lex: 1,946; makefile: 1,149
file content (38 lines) | stat: -rwxr-xr-x 1,189 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
#!/usr/bin/make -f

DEB_FIXPERMS_EXCLUDE := /usr/games/crossfire /var/log/crossfire \
		/var/games/crossfire \
		/var/games/crossfire/datafiles \
		/var/games/crossfire/players \
		/var/games/crossfire/temp.maps \
		/var/games/crossfire/unique-items


include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

# useless notes for upgrading from pre 1.3.0 versions
DEB_INSTALL_DOCS_ALL := -XNEWS

DEB_CONFIGURE_EXTRA_FLAGS :=	--without-check \
				--bindir=/usr/games \
				--datadir=/usr/share/games \
				--localstatedir=/var/games

post-patches::
	if [ ! -e configure ] ; then autoconf ; fi

clean::
	rm -f configure config.log

binary-install/crossfire-server::
	chown games:games debian/crossfire-server/var/log/crossfire \
		debian/crossfire-server/var/games/crossfire \
		debian/crossfire-server/var/games/crossfire/datafiles \
		debian/crossfire-server/var/games/crossfire/players \
		debian/crossfire-server/var/games/crossfire/temp.maps \
		debian/crossfire-server/var/games/crossfire/unique-items

binary-fixup/crossfire-doc::
	rm -f debian/crossfire-doc/usr/share/doc/crossfire-doc/*/Makefile.*