#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with ocaml

override_dh_auto_build:
	./build.sh

override_dh_auto_install:
	find _build/ -name "test*" -type f -delete
	dh_auto_install

override_dh_auto_test:
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
	cd test && ./test.sh
endif
