#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

DESTDIR := debian/not-ocamlfind

OCAMLFIND_DESTDIR := $(DESTDIR)$(OCAML_STDLIB_DIR)
export OCAMLFIND_DESTDIR

%:
	dh $@ --with ocaml --no-parallel

override_dh_auto_clean:
	dh_auto_clean || true

override_dh_auto_configure:
	./configure -bindir /usr/bin -sitelib $(OCAML_STDLIB_DIR) -mandir /usr/share/man -config /etc/ocamlfind.conf -no-custom -no-topfind

override_dh_auto_install:
	dh_auto_install -- OCAMLFIND_BIN=$(DESTDIR)/usr/bin
