File: rules

package info (click to toggle)
freesweep 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 628 kB
  • sloc: ansic: 5,173; sh: 2,180; makefile: 204
file content (27 lines) | stat: -rwxr-xr-x 688 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f
#export DH_VERBOSE=1
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)

%:
	dh $@

override_dh_auto_configure:
	CFLAGS="$(CFLAGS) $(CPPFLAGS)" dh_auto_configure -- \
		--prefix=/usr \
		--bindir=/usr/games \
		--mandir='$${prefix}/share/man' \
		--with-prefsdir=/etc \
		--with-scoresdir=/var/games \
		--with-ncurses=/usr

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) clean

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/freesweep install

override_dh_fixperms:
	dh_fixperms
	chmod 2755 $(CURDIR)/debian/freesweep/usr/games/freesweep
	chown root:games $(CURDIR)/debian/freesweep/usr/games/freesweep