File: rules

package info (click to toggle)
unibilium 2.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,020 kB
  • sloc: ansic: 9,205; makefile: 124; sh: 30
file content (31 lines) | stat: -rwxr-xr-x 831 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

DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk

CFLAGS += $(CPPFLAGS)
export CFLAGS
export LDFLAGS

LIBTOOL=$(CURDIR)/debian/libtool/libtool
ifneq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
	LIBTOOL+=--quiet
endif
export LIBTOOL

%:
	dh $@ --buildsystem makefile

# Clean needs to invoke configure so "make clean" doesn't fail
override_dh_auto_clean: override_dh_auto_configure
	dh_auto_clean
	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 --buildsystem=autoconf

override_dh_auto_install:
	$(MAKE) DESTDIR="$(CURDIR)/debian/tmp" PREFIX=/usr LIBDIR='$${PREFIX}/lib/$(DEB_HOST_MULTIARCH)' install