File: rules

package info (click to toggle)
quakeforge 0.1.1-1
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 6,820 kB
  • ctags: 16,579
  • sloc: ansic: 101,853; asm: 9,997; sh: 3,175; makefile: 762; perl: 33
file content (86 lines) | stat: -rwxr-xr-x 1,875 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
#!/usr/bin/make -f
# Copyright (C) 1997 Joey Hess
# Copyright (C) 2000 Joseph Carter
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.

export DH_COMPAT=2
export DH_OPTIONS

PWD=$(shell pwd)

build: build-stamp
build-stamp:
	dh_testdir

	./configure --prefix=/usr --mandir=\$${prefix}/share/man \
                    --bindir=/usr/games --enable-release \
		    --with-3dfxgl-name=GL --enable-newstyle
	$(MAKE)

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp 

	-$(MAKE) distclean

	dh_clean

install: DH_OPTIONS=
install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	$(MAKE) install DESTDIR=$(PWD)/debian/tmp

	for i in debian/tmp/usr/games/*; do \
		mv $$i $$i.real ;\
		install -m 755 debian/wrapper $$i ;\
	done
	
	dh_movefiles
	
	install -m 644 gamedata/quakeworld/qwprogs.dat \
	               debian/quake-server/usr/share/games/quake/qw


binary-indep: DH_OPTIONS=-i
binary-indep: build install
# Nothing to do here

binary-arch: DH_OPTIONS=-a
binary-arch: build install
	dh_testversion 2
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_undocumented
	dh_installchangelogs ChangeLog
	dh_strip
	dh_link
	dh_compress
	dh_fixperms
	# need to make -svga and -3dfx bins suid for svgalib
	chmod 4755 debian/quake-svga/usr/games/quake-svga.real
	chmod 4755 debian/quake-svga/usr/games/qw-client-svga.real
	chmod 4755 debian/quake-3dfx/usr/games/quake-3dfx.real
	chmod 4755 debian/quake-3dfx/usr/games/qw-client-3dfx.real
	dh_suidregister
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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