#!/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

override_dh_auto_configure:
	./configure

execute_after_dh_auto_build:
	debian/gen_source_info.sh > lib/bup/source_info.py

override_dh_auto_build-indep:
	debian/gen_source_info.sh > lib/bup/source_info.py
	$(MAKE) Documentation/all

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