File: rules

package info (click to toggle)
libtermkey 0.22-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 432 kB
  • sloc: ansic: 3,708; makefile: 129; sh: 9
file content (41 lines) | stat: -rwxr-xr-x 1,239 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
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/pkg-info.mk

# Makefile doesn't honor CPPFLAGS
CFLAGS += $(CPPFLAGS)

export CFLAGS LDFLAGS

VERBOSE = 1
ifneq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
	VERBOSE = 0
endif

%:
	dh $@

override_dh_auto_clean: override_dh_auto_configure
	dh_auto_clean -- LIBTOOL="$(CURDIR)/debian/libtool/libtool"
	rm -rf debian/libtool

override_dh_auto_configure:
	mkdir -p debian/libtool
	cp debian/configure.ac debian/libtool/
	env -C debian/libtool LIBTOOLIZE='libtoolize -i' autoreconf -f -i
	dh_auto_configure --sourcedirectory=debian/libtool

override_dh_auto_build-arch:
	dh_auto_build -- VERBOSE=$(VERBOSE) PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) LIBTOOL="$(CURDIR)/debian/libtool/libtool" libtermkey.la

override_dh_auto_install-arch:
	dh_auto_install -- VERBOSE=$(VERBOSE) PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) DESTDIR=$(CURDIR)/debian/tmp LIBTOOL="$(CURDIR)/debian/libtool/libtool"

override_dh_auto_test:
	@echo 'blhc: ignore-line-regexp: .*\bt/[^.]*.c.*'
	dh_auto_test -- VERBOSE=$(VERBOSE) LIBTOOL="$(CURDIR)/debian/libtool/libtool"