#!/usr/bin/make -f

export BUP_PYTHON_CONFIG := python3-config
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND := -Wno-error

%:
	dh $@ --with python3

lib/bup/checkout_info.py: debian/gen_checkout_info.sh
	debian/gen_checkout_info.sh > $@

override_dh_auto_configure: lib/bup/checkout_info.py
	./configure

override_dh_auto_build-indep:
	$(MAKE) Documentation/all

override_dh_auto_install:
	$(MAKE) PREFIX="/usr" DESTDIR="$(CURDIR)/debian/tmp" install
