#!/usr/bin/make -f
# -*- makefile-gmake -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
RUBY_SITEARCH := $(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["sitearch"]')
export RUBY_CFLAGS+=-I/usr/lib/ruby/vendor_ruby/1.8/$(RUBY_SITEARCH)

%:
	dh  --with quilt $@

override_dh_auto_clean:
	dh_auto_clean
	rm -f intltool-extract intltool-merge intltool-update
	rm -f lib/stamp-tomoe-enum-types-c lib/stamp-tomoe-enum-types-h

# override_dh_auto_configure:
# 	dh_auto_configure -- \
# 		--with-ruby-bindingdir=/usr/lib/ruby/1.8/$___arch___
# 		--with-ruby-libdir=/usr/lib/ruby/1.8
# --enable-gtk-doc
