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

include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with ocaml --buildsystem ocaml_dune

execute_before_dh_auto_build:
	if command -v ocamlopt >/dev/null; then cp src/c/dune.native src/c/dune; fi

execute_after_dh_auto_build:
	cd src && ocamlbuild morbig.docdir/index.html
	cp -aL src/morbig.docdir html
