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

include /usr/share/ocaml/ocamlvars.mk

PARMAP_DIR=$(CURDIR)/debian/tmp

%:
	dh $@ --with ocaml

override_dh_autoreconf:
# some OCaml-specific macros are missing

override_dh_auto_configure:
	./configure --prefix=/usr

override_dh_auto_install:
	$(MAKE) DESTDIR=$(PARMAP_DIR)/usr install
	rm -f $(PARMAP_DIR)$(OCAML_STDLIB_DIR)/parmap/myocamlbuild.cmx

override_dh_missing:
	dh_missing --fail-missing
