#! /usr/bin/make -f

export DEB_CPPFLAGS_MAINT_APPEND := -I/usr/include/tcl8.5

%:
	dh $@ --sourcedirectory=build

override_dh_auto_configure:
	dh_auto_configure -- --with-x --enable-db

override_dh_clean:
	# This is in the upstream tarball, so shouldn't be removed.
	dh_clean -X 'vi/#v_xchar.c#'

override_dh_auto_install:
	dh_auto_install -- prefix=$(CURDIR)/debian/vigor/usr

override_dh_installchangelogs:
	dh_installchangelogs docs/changelog
