#! /usr/bin/make -f

ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS := -O2 -g -Wall
else
CFLAGS := -g -Wall
endif

configure:
	dh build --until dh_auto_configure

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --disable-scrollkeeper

override_dh_auto_build:
	dh_auto_build -- CFLAGS="$(CFLAGS)" LDFLAGS=-Wl,--as-needed

# No useful tests here, except for the XML check in doc/ which requires
# network access.
override_dh_auto_test:
	:

override_dh_install:
	install -m644 debian/telegnome.gnome-config \
		      debian/telegnome/etc/gnome/config/telegnome

.PHONY: configure
