#!/usr/bin/make -f

%:
	dh $@ --with elpa

override_dh_auto_build:
	test -f orderless.texi.orig || cp orderless.texi orderless.texi.orig
	emacs -q --batch -l htmlize -l ox-html-stable-ids README.org \
	--eval '(setq user-full-name "Omar Antolín Camarena")' \
	--eval '(setq org-html-stable-ids t org-export-timestamp-file nil)' \
	-f org-html-stable-ids-add -f org-texinfo-export-to-info \
	-f org-html-export-to-html

override_dh_auto_clean:
	rm -f orderless.info orderless.html
	test -f orderless.texi.orig && mv orderless.texi.orig orderless.texi || true
