Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
5
6 include /usr/share/dpkg/default.mk
7
8 CFLAGS += $(CPPFLAGS)
9 export CFLAGS LDFLAGS
10
11 VERBOSE=
12 ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
13 VERBOSE=VERBOSE=1
14 endif
15
16 LIBTOOL=$(CURDIR)/debian/libtool/libtool
17 export LIBTOOL
18
19 %:
20 dh $@
21
22 override_dh_auto_clean: override_dh_auto_configure
23 dh_auto_clean
24 rm -rf debian/libtool
25
26 override_dh_auto_configure:
27 mkdir -p debian/libtool
28 cp debian/configure.ac debian/libtool/
29 env -C debian/libtool LIBTOOLIZE='libtoolize -i' autoreconf -f -i
30 dh_auto_configure --sourcedirectory=debian/libtool --buildsystem=autoconf
31
32 override_dh_auto_build-arch:
33 dh_auto_build -- $(VERBOSE) PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
34
35 override_dh_auto_install-arch:
36 dh_auto_install -- $(VERBOSE) PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
37
38 override_dh_auto_test:
39 env TERM=xterm dh_auto_test -- $(VERBOSE)