#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

PKGNAME = libxstr-ocaml-dev

%:
	dh $@ --with ocaml

override_dh_auto_build:
	dh_auto_build
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
	$(MAKE) opt
endif

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/$(PKGNAME)/$(OCAML_STDLIB_DIR)
