File: rules

package info (click to toggle)
heroes 0.21-15
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,748 kB
  • ctags: 3,825
  • sloc: ansic: 27,967; sh: 3,942; makefile: 651; yacc: 318; sed: 51; lisp: 10; perl: 9
file content (41 lines) | stat: -rwxr-xr-x 1,064 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --datadir=/usr/share/games --bindir=/usr/games --without-ggi --with-sdl --with-mikmod --with-sdl-mixer

override_dh_autoreconf:
# The code uses an old gettext Makefile.in.in which needs mkinstalldirs
	cp tools/mkinstalldirs .
	dh_autoreconf
	mv mkinstalldirs tools

override_dh_autoreconf_clean:
	cp tools/mkinstalldirs .
	dh_autoreconf_clean
	mv mkinstalldirs tools

override_dh_auto_build-arch:
# Keep the pre-built manpages
# (heroes needs to touch the home directory which fails on buildds)
	cp man/*.6 .
# Make sure we don't try to rebuild doc/heroes.texi (see #816269)
	touch doc/heroes.texi
	dh_auto_build
	mv *.6 man

override_dh_fixperms-arch:
	dh_fixperms
	chown root:games debian/heroes/usr/games/heroes
	chmod g+s debian/heroes/usr/games/heroes

override_dh_install-arch:
	dh_install
	rm -rf debian/heroes/usr/share/games/heroes/etc

override_dh_auto_test:
	srcdir=$(CURDIR)/tests VERBOSE=1 dh_auto_test