Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 include /usr/share/dpkg/architecture.mk
7
8 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
9 confflags= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
10 else
11 confflags= --build $(DEB_BUILD_GNU_TYPE)
12 endif
13
14 DEB_BUILD_MAINT_OPTIONS = hardening=+all
15 DPKG_EXPORT_BUILDFLAGS = 1
16 include /usr/share/dpkg/buildflags.mk
17 CFLAGS += -g -Wall
18
19 %:
20 dh $@
21
22 override_dh_autoreconf::
23 # Avoid autoconf rebuild due to patching input files.
24 touch --reference=aclocal.m4 configure m4/needtrio.m4
25 touch --reference=Makefile.am m4/needtrio.m4
26 dh_update_autotools_config
27
28 override_dh_auto_configure:
29 CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" dh_auto_configure -- \
30 --with-pager=/etc/alternatives/pager \
31 --disable-rpath \
32 --with-libidn2 \
33 $(confflags)
34
35 override_dh_clean:
36 rm -f doc/lftp.inf*
37 dh_clean
38
39 override_dh_install:
40 dh_install
41 rm -rf $(CURDIR)/debian/*/usr/lib