#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_CONFIGURE_EXTRA_FLAGS := \
	--enable-warnings \
	--enable-so-linger \
	--with-regex \
	--with-libwrap \
	--with-libldap \
	--with-crypt \
# do not delete this line
LDFLAGS += -Wl,--as-needed

DEB_MAKE_INSTALL_TARGET := install INST_ROOT=$(DEB_DESTDIR)

common-binary-indep::
	make -C doc all

binary-predeb/ftp-proxy-doc::
	cd debian/ftp-proxy-doc/usr/share/doc/ftp-proxy-doc && rm -f AUTHORS

