#!/usr/bin/make -f
#export DH_VERBOSE=1
#
# Uncomment to ignore all test failures (but the tests will run anyway)
#export DH_RUBY_IGNORE_TESTS=all
#
# Uncomment to ignore some test failures (but the tests will run anyway).
# Valid values:
#export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems

# TODO this should not be needed if the upstream tarball was obtained through
# gemwatch (it would already have a metadata.yml file).
UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '{ if ($$1 == "Version:") { print($$2) } }' | cut -d - -f 1)
export DH_RUBY_GEMSPEC=debian/sqlite3-$(UPSTREAM_VERSION).gemspec

%:
	dh $@ --buildsystem=ruby --with ruby

override_dh_installdocs:
	cd faq && ruby faq.rb > faq.html
	dh_installdocs

override_dh_clean:
	rm -f faq/faq.html
	dh_clean
