| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 5 |
|
| 6 |
include /usr/share/dpkg/architecture.mk |
| 7 |
include /usr/share/dpkg/buildflags.mk |
| 8 |
include /usr/share/dpkg/pkg-info.mk |
| 9 |
|
| 10 |
|
| 11 |
CFLAGS += $(CPPFLAGS) |
| 12 |
|
| 13 |
export CFLAGS LDFLAGS |
| 14 |
|
| 15 |
VERBOSE = 1 |
| 16 |
ifneq (,$(filter terse,$(DEB_BUILD_OPTIONS))) |
| 17 |
VERBOSE = 0 |
| 18 |
endif |
| 19 |
|
| 20 |
%: |
| 21 |
dh $@ |
| 22 |
|
| 23 |
override_dh_auto_clean: override_dh_auto_configure |
| 24 |
dh_auto_clean -- LIBTOOL="$(CURDIR)/debian/libtool/libtool" |
| 25 |
rm -rf debian/libtool |
| 26 |
|
| 27 |
override_dh_auto_configure: |
| 28 |
mkdir -p debian/libtool |
| 29 |
cp debian/configure.ac debian/libtool/ |
| 30 |
env -C debian/libtool LIBTOOLIZE='libtoolize -i' autoreconf -f -i |
| 31 |
dh_auto_configure --sourcedirectory=debian/libtool |
| 32 |
|
| 33 |
override_dh_auto_build-arch: |
| 34 |
dh_auto_build -- VERBOSE=$(VERBOSE) PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) LIBTOOL="$(CURDIR)/debian/libtool/libtool" libtermkey.la |
| 35 |
|
| 36 |
override_dh_auto_install-arch: |
| 37 |
dh_auto_install -- VERBOSE=$(VERBOSE) PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) DESTDIR=$(CURDIR)/debian/tmp LIBTOOL="$(CURDIR)/debian/libtool/libtool" |
| 38 |
|
| 39 |
override_dh_auto_test: |
| 40 |
@echo 'blhc: ignore-line-regexp: .*\bt/[^.]*.c.*' |
| 41 |
dh_auto_test -- VERBOSE=$(VERBOSE) LIBTOOL="$(CURDIR)/debian/libtool/libtool" |