File: rules

package info (click to toggle)
lierolibre 0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 5,776 kB
  • sloc: cpp: 36,411; sh: 11,663; makefile: 809; ansic: 268
file content (34 lines) | stat: -rwxr-xr-x 801 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
#!/usr/bin/make -f

DH_VERBOSE=1

# Compatible with Ubuntu 11.10
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		CPPFLAGS="$(CPPFLAGS)" \
		CFLAGS="$(CFLAGS)" \
		CXXFLAGS="$(CXXFLAGS)" \
		LDFLAGS="$(LDFLAGS)" \
		bindir=/usr/games \
		libexecdir=/usr/lib/games \
		datadir=/usr/share/games
	rm -f data/LIERO.CHR
	rm -f data/LIERO.SND

override_dh_auto_install:
	dh_auto_install
	rm debian/tmp/usr/share/doc/lierolibre/ChangeLog

override_dh_installchangelogs:
	# Doesn't work automatically in Ubuntu 11.10
	dh_installchangelogs ChangeLog