#!/usr/bin/make -f

DH_VERBOSE = 1
export DH_VERBOSE = 1

devi := $(shell lsb_release -r -s | cut -d '.'  -f1)
ifeq ($(shell if [ $(devi) -gt 7 ] ; then echo gt ; else echo lt ; fi),gt)
   DEBVE2=yes
else
   DEBVE2=no
endif


ifeq ($(DEBVE2),yes)
export DEB_CFLAGS_MAINT_APPEND = -fgnu89-inline
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export V=1

%:
	dh $@  --with autotools-dev

override_dh_auto_configure:
	dh_auto_configure -- --with-gtk=gtk2 --enable-html --enable-gio --enable-spell --enable-sourceview --enable-icon-browser

override_dh_auto_install:
	dh_auto_install -- 
