File: rules

package info (click to toggle)
uhexen2 1.5.6%2Bdfsg-1
  • links: PTS
  • area: contrib
  • in suites: jessie, jessie-kfreebsd
  • size: 16,340 kB
  • ctags: 23,477
  • sloc: ansic: 188,956; asm: 14,958; makefile: 3,475; sh: 3,325; objc: 330; pascal: 213; cpp: 19
file content (69 lines) | stat: -rwxr-xr-x 1,873 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
#!/usr/bin/make -f

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

export DH_OPTIONS
export LDFLAGS=-Wl,--as-needed
export DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_auto_build:
	# Build the main game binaries
	make -C engine/hexen2 h2
	make -s -C engine/hexen2 clean
	make -C engine/hexen2 glh2
	make -s -C engine/hexen2 clean
	# Build the dedicated server
	make -C engine/hexen2/server
	# HexenWorld binaries
	make -C engine/hexenworld/server
	make -C engine/hexenworld/client hw
	make -s -C engine/hexenworld/client clean
	make -C engine/hexenworld/client glhw
	# HexenWorld master server
	make -C hw_utils/hwmaster
	# Build h2patch
	make -C h2patch
	# Launcher binaries
	make -C launcher
	# Build the hcode compiler
	make -C utils/hcc

	# building the gamecode
	utils/hcc/hcc -q -src gamecode/hc/h2
	utils/hcc/hcc -q -src gamecode/hc/h2 -name progs2.src
	utils/hcc/hcc -q -src gamecode/hc/hw -oi -on
	utils/hcc/hcc -q -src gamecode/hc/portals -oi -on

override_dh_installdocs:
	dh_installdocs --exclude=SrcNotes.txt --exclude=CHANGES

override_dh_auto_install:

override_dh_auto_clean:
	make -s -C engine/hexen2 distclean
	make -C engine/hexen2 clean
	make -C engine/hexen2/server clean
	rm -f engine/hexen2/server/h2ded
	make -s -C engine/hexenworld/client distclean
	make -s -C engine/hexenworld/server distclean
	make -s -C launcher distclean
	rm -f gamecode/hc/h2/progs.dat
	rm -f gamecode/hc/h2/files.dat
	rm -f gamecode/hc/h2/progdefs.h
	rm -f gamecode/hc/hw/files.dat
	rm -f gamecode/hc/hw/progdefs.h
	rm -f gamecode/hc/portals/files.dat
	rm -f gamecode/hc/portals/progdefs.h
	rm -f gamecode/hc/h2/progs2.dat
	rm -f gamecode/hc/hw/hwprogs.dat
	rm -f gamecode/hc/portals/progs.dat
	make -s -C h2patch distclean
	make -s -C utils/hcc distclean
	make -s -C hw_utils/hwmaster distclean
	dh_auto_clean