#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with coq,ocaml

override_dh_auto_clean:
	make clean
	find . -name "*.aux" -delete
	rm -f Makefile.coq Makefile.coq.conf .nia.cache
	if test -f _CoqProject.orig; then \
	  mv _CoqProject.orig _CoqProject; \
	fi

override_dh_auto_configure:
	cp _CoqProject _CoqProject.orig
	./configure --enable-ssr --enable-aac

override_dh_auto_install:
	DESTDIR=debian/tmp make install
	find debian/tmp -empty -delete
