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

%:
	dh $@ --parallel --with autoreconf

override_dh_auto_build:
	pod2man -s 1 -c "ION tools without man pages" debian/ion-tools.pod debian/ion-tools.1
	dh_auto_build

# Remove ionstart.awk from ion-doc package. It is essential for
# ion scripts and will be shiped with them in the ion package.
# The file is already included in ion.install
override_dh_install:
	dh_install -pion
ifneq (,$(findstring ion-doc, $(shell dh_listpackages)))
	dh_install -pion-doc
	rm -f debian/ion-doc/usr/share/ion/ionstart.awk
endif
	dh_install --remaining-packages

override_dh_auto_test:

override_dh_clean:
	dh_clean -Xautom4te.cache

override_dh_installchangelogs:
	dh_installchangelogs -k release-notes.txt

get-orig-source:
	uscan --force-download
