#!/usr/bin/make -f
%:
	dh $@ --with elpa

override_dh_auto_build:
	make -C doc company.info

execute_after_dh_installinfo:
	# Make sure we also ship the images referenced in the info pages.
	cp -r ./doc/images/ debian/elpa-company/usr/share/info/
	# And remove unused README files.
	find debian/elpa-company/usr/share/info/ -name "README" -delete

override_dh_elpa_test:
	make test-batch

override_dh_compress:
	# Do not compress the images or the links in info pages will be broken.
	dh_compress -Xusr/share/info/images/
