File: rules

package info (click to toggle)
crispy-doom 7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,820 kB
  • sloc: ansic: 251,185; makefile: 974; objc: 951; python: 705; sh: 85; xml: 7
file content (24 lines) | stat: -rwxr-xr-x 872 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CPPFLAGS_MAINT_APPEND = -DBUILD_DATE='"$(shell date --utc --date=@${SOURCE_DATE_EPOCH} +%Y-%m-%d)"'

%:
	dh $@ --with bash-completion

override_dh_auto_install:
	dh_auto_install --max-parallel=1 -- \
		SETUP_BINARIES=crispy-setup \
		DOC_FILES="README.md" \
		execgamesdir=/usr/games \
		appdatadir=/usr/share/metainfo
	# superfluous docs
	rm -f  debian/crispy-doom/usr/share/doc/crispy-doom/CMDLINE.doom \
	       debian/crispy-doom/usr/share/doc/crispy-doom/INSTALL.doom \
	       debian/crispy-doom/usr/share/doc/crispy-doom/NOT-BUGS.md
	rm -fr debian/crispy-doom/usr/share/doc/crispy-heretic \
	       debian/crispy-doom/usr/share/doc/crispy-hexen \
	       debian/crispy-doom/usr/share/doc/crispy-strife
	find 'debian/' -name 'crispy-server*' -delete