File: rules

package info (click to toggle)
adonthell 0.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 5,360 kB
  • sloc: cpp: 50,661; sh: 5,142; python: 3,307; makefile: 338; lex: 216; sed: 16
file content (26 lines) | stat: -rwxr-xr-x 676 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--mandir=\$${prefix}/share/man \
		--bindir=\$${prefix}/games \
		--datadir=\$${prefix}/share/games \
		--disable-pyc


override_dh_auto_install:
	dh_auto_install -- \
		DESTDIR="$(CURDIR)/debian/adonthell"
	#Remove the symlink and change binary name back to adonthell
	rm -f $(CURDIR)/debian/adonthell/usr/games/adonthell
	mv $(CURDIR)/debian/adonthell/usr/games/adonthell-0.3 \
		$(CURDIR)/debian/adonthell/usr/games/adonthell
	# Remove empty directories
	find . -type d -empty -delete