File: rules

package info (click to toggle)
mg 20180927-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 696 kB
  • sloc: ansic: 14,387; makefile: 32; sh: 7
file content (23 lines) | stat: -rwxr-xr-x 569 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
#!/usr/bin/make -f

DH_VERBOSE=1
# export DH_OPTIONS=-v

include /usr/share/dpkg/architecture.mk
PKG_CONFIG ?= $(DEB_HOST_GNU_TYPE)-pkg-config

MAKE_VARS=DESTDIR=debian/mg prefix=/usr mandir=/usr/share/man CURSES_LIBS=-ltinfo PKG_CONFIG='$(PKG_CONFIG)'

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean -- $(MAKE_VARS)

override_dh_auto_build:
	dh_auto_build -- $(MAKE_VARS)

override_dh_auto_install:
	$(MAKE) install $(MAKE_VARS)
# Install the ".mg" example config manually, as debhelper can't rename
	install -D -m444 .mg debian/mg/usr/share/doc/mg/examples/dot_mg