File: rules

package info (click to toggle)
tf 1%3A4.0s1-21.1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,920 kB
  • sloc: ansic: 15,663; sh: 44; makefile: 38
file content (33 lines) | stat: -rwxr-xr-x 833 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

# export DH_VERBOSE=1
export DH_OPTIONS

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --parallel

override_dh_auto_build:
	echo y | ./unixmake files
	touch build

override_dh_auto_install:
	mkdir -p \
		debian/tf/usr/games \
		debian/tf/usr/share/games \
		debian/tf/usr/share/man/man1 \
		debian/tf/usr/share/doc/tf/examples
	./unixmake install \
		TF=$(CURDIR)/debian/tf/usr/games/tf \
		LIBDIR=$(CURDIR)/debian/tf/usr/share/games/tf \
		MANPAGE=$(CURDIR)/debian/tf/usr/share/man/man1/tf4.1 \
		AM_UPDATE_INFO_DIR=no
	mv debian/tf/usr/share/games/tf/CHANGES  debian/tf/usr/share/doc/tf/changelog
	mv debian/tf/usr/share/games/tf/tfrc debian/tf/usr/share/doc/tf/examples/

override_dh_auto_clean:
	./unixmake distclean
	-rm -r build