File: rules

package info (click to toggle)
jove 4.17.5.5-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,476 kB
  • sloc: ansic: 29,235; makefile: 535; sh: 428; python: 45
file content (45 lines) | stat: -rwxr-xr-x 1,099 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/make -f
# See debhelper(7)
# (uncomment to enable)
# output every command that modifies files on the build system.
export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/buildtools.mk
CPPFLAGS+=$(shell $(PKG_CONFIG) --cflags ncurses)
LDLIBS+=$(shell $(PKG_CONFIG) --libs ncurses) -lutil

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- \
		SYSDEFS="-DLinux" \
		OPTFLAGS="$(CFLAGS)" \
		LDLIBS="$(LDLIBS)" \
		LDFLAGS="$(LDFLAGS)" \
		JOVEHOME=/usr \
		JMANDIR=/usr/share/man/man1 \
		LOCALCC=$(CC_FOR_BUILD) \
		CC=$(CC) \
		fdocs all

# Install flags must be same as build flags since paths.h and keys.c
# are regenerated each time Makefile runs.
override_dh_auto_install:
	dh_auto_install -- \
		SYSDEFS="-DLinux" \
		OPTFLAGS="$(CFLAGS)" \
		LDLIBS="$(LDLIBS)" \
		LDFLAGS="$(LDFLAGS)" \
		JOVEHOME=/usr \
		JMANDIR=/usr/share/man/man1 \
		LOCALCC=$(CC_FOR_BUILD) \
		CC=$(CC)
	cp debian/jove.rc debian/jove/etc/jove/jove.rc

override_dh_clean:
	dh_clean
	debconf-updatepo