File: rules

package info (click to toggle)
maelstrom 3.0.7-4
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 4,948 kB
  • sloc: cpp: 10,947; sh: 3,406; ansic: 2,781; makefile: 175
file content (34 lines) | stat: -rwxr-xr-x 812 bytes parent folder | download | duplicates (2)
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

TMPDIR=maelstrom
DATADIR=debian/${TMPDIR}/usr/share/games/Maelstrom
ICONDIR=debian/${TMPDIR}/usr/share/icons/hicolor/48x48/apps

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export DEB_CFLAGS_MAINT_APPEND = -Wall
export DEB_CXXFLAGS_MAINT_APPEND = -Wall

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf -- ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- \
	  --bindir='$${exec_prefix}/games' \
	  --datadir='$${prefix}/share/games'

execute_after_dh_auto_install:
# duplicate executable installed
	rm -f ${DATADIR}/Maelstrom
# installed/copied separately
	rm -rf ${DATADIR}/Docs/
	rm -f ${DATADIR}/COPYING*
	rm -f ${DATADIR}/README*
# PNG icon for the desktop file
	convert icon.xpm ${ICONDIR}/maelstrom.png

override_dh_installchangelogs:
	dh_installchangelogs Changelog