File: rules

package info (click to toggle)
freesweep 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 652 kB
  • sloc: ansic: 5,611; sh: 2,180; makefile: 200
file content (22 lines) | stat: -rwxr-xr-x 528 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
#!/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