File: rules

package info (click to toggle)
libmpack 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 384 kB
  • ctags: 539
  • sloc: ansic: 4,439; makefile: 228
file content (31 lines) | stat: -rwxr-xr-x 734 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
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildflags.mk

export CFLAGS CPPFLAGS LDFLAGS

ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
	CONFIG = debug
else
	CONFIG = release
endif

ARGS = config=$(CONFIG) VERBOSE=1 PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)

%:
	dh $@ --with lua --buildsystem=lua --parallel

override_dh_auto_build-arch:
	$(MAKE) $(ARGS)
	dh_auto_build --buildsystem=lua -plua-mpack

override_dh_auto_install-arch:
	$(MAKE) $(ARGS) DESTDIR=$(CURDIR)/debian/tmp install
	dh_auto_install --buildsystem=lua -plua-mpack

override_dh_auto_test:
	$(MAKE) VERBOSE=1 test
# Need busted packaged to run tests for Lua module