File: rules

package info (click to toggle)
typespeed 0.6.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,516 kB
  • sloc: sh: 4,286; ansic: 3,794; makefile: 93; sed: 16
file content (23 lines) | stat: -rwxr-xr-x 602 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

export DEB_CFLAGS_MAINT_APPEND = -Wall -W -pedantic -std=c99 -g -D_GNU_SOURCE

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
export DEB_CFLAGS_MAINT_APPEND = -O0
else
export DEB_CFLAGS_MAINT_APPEND = -O2
endif

%:
	dh $@ --without autoreconf

override_dh_auto_configure:
	./configure --prefix=/usr --bindir=/usr/games --localstatedir=/var \
		--sysconfdir=/etc

execute_after_dh_auto_install:
	rm debian/typespeed/var/games/typespeed.score

execute_after_dh_fixperms:
	chown root:games debian/typespeed/usr/games/typespeed
	chmod g+s        debian/typespeed/usr/games/typespeed