#!/usr/bin/make	 -f

include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with ocaml

override_dh_auto_build:
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	$(MAKE)
else
	$(MAKE) byte
endif
	make doc

override_dh_auto_clean:
	# hack to avoid removal of debian/rules when building from git
	chmod 644 debian/rules
	make dist-clean
	chmod 755 debian/rules

