File: rules

package info (click to toggle)
tiled-qt 0.17.0-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 15,432 kB
  • ctags: 8,446
  • sloc: cpp: 62,677; java: 3,338; python: 1,378; xml: 552; ruby: 40; sh: 35; makefile: 25
file content (39 lines) | stat: -rwxr-xr-x 1,005 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
#!/usr/bin/make -f
# -*- makefile -*-

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

DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
XP     = xsltproc -''-nonet -''-param man.charmap.use.subset "0"

%:
	dh $@ --parallel

override_dh_auto_configure:
	dh_auto_configure
	dh_auto_configure -Dsrc/libtiled -- LIBDIR=/usr/lib/tiled

override_dh_auto_build: terraingenerator.1
	pngtopnm src/tiled/images/32x32/tiled.png > tiled-icon-32.ppm
	pngtopnm -alpha src/tiled/images/32x32/tiled.png > tiled-icon-32_alpha.pgm
	ppmtoxpm -name=tiled-icon-32 tiled-icon-32.ppm \
	    -alphamask=tiled-icon-32_alpha.pgm > tiled-icon-32.xpm
	dh_auto_build

tiled.1: debian/tiled.xml
	$(XP) $(DB2MAN) $<

tmxviewer.1: debian/tmxviewer.xml
	$(XP) $(DB2MAN) $<

terraingenerator.1: debian/terraingenerator.xml
	$(XP) $(DB2MAN) $<

override_dh_makeshlibs:
	dh_makeshlibs -Xlibtiled

override_dh_strip:
	dh_strip --dbg-package=tiled-dbg