File: rules

package info (click to toggle)
tworld 1.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 6,900 kB
  • ctags: 1,751
  • sloc: ansic: 12,877; perl: 2,465; makefile: 141
file content (23 lines) | stat: -rwxr-xr-x 565 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
#!/usr/bin/make -f

BUILD_DATE := $(shell dpkg-parsechangelog | sed -n -e 's/^Date: //p')

%:
	dh $@

override_dh_clean:
	rm -f Makefile oshw-sdl/Makefile oshw
	dh_clean

override_dh_auto_configure:
	dh_auto_configure -- --bindir=/usr/games --with-sharedir=/usr/share/games/tworld

override_dh_auto_build:
	echo \#define COMPILE_TIME \"$(BUILD_DATE)\" > comptime.h
	dh_auto_build

override_dh_auto_install:
	mkdir -p debian/tworld-data/usr/share/man/man6
	pod2man -s 6 -r 'Tile World' -c '' debian/c4 \
		debian/tworld-data/usr/share/man/man6/c4.6
	dh_auto_install