File: rules

package info (click to toggle)
asylum 0.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,424 kB
  • sloc: ansic: 7,476; makefile: 91; sh: 43
file content (25 lines) | stat: -rwxr-xr-x 621 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
24
25
#!/usr/bin/make -f

CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)

%:
	dh $@

override_dh_auto_build:
	$(MAKE) CFLAGS="$(CFLAGS)"

override_dh_auto_install-arch:
	$(MAKE) install-binary \
		INSTALLBIN=debian/asylum/usr/games/asylum \

override_dh_auto_install-indep:
	$(MAKE) install-resources \
		INSTALLRESOURCEPATH=debian/asylum-data/usr/share/games/asylum

override_dh_fixperms-arch:
	dh_fixperms
# Make asylum sgid games, needed to write high scores in /var/games/asylum/
	chown root:games debian/asylum/usr/games/asylum
	chmod g+s debian/asylum/usr/games/asylum