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 46 47 48 49 50 51 52 53 54
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
# Exported to the package makefile.
PACKAGE_VARS = \
PREFIX=/usr \
DESTDIR=debian/tmp \
OBJDIR=.obj \
LUA_PACKAGE=lua-5.3 \
LUABITOP_PACKAGE="--cflags={} --libs={}" \
LPEG_PACKAGE=lua5.3-lpeg \
MINIZIP_PACKAGE=minizip \
UTHASH_PACKAGE="--cflags={} --libs={}" \
LUA_INTERPRETER=/usr/bin/lua5.3 \
CFLAGS="$(CPPFLAGS) $(CFLAGS)" \
LDFLAGS="$(LDFLAGS)" \
WANT_STRIPPED_BINARIES=yes
# Use hardening build flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
.PHONY: override_dh_auto_build
override_dh_auto_build:
dh_testdir
make all $(PACKAGE_VARS)
.PHONY: override_dh_auto_test
override_dh_auto_test:
dh_testdir
make tests $(PACKAGE_VARS)
.PHONY: override_dh_auto_clean
override_dh_auto_clean:
make clean $(PACKAGE_VARS)
.PHONY: override_dh_auto_install
override_dh_auto_install:
.PHONY: override_dh_install
override_dh_install:
make install $(PACKAGE_VARS)
dh_install
%:
dh $@
|