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

include /usr/share/dpkg/architecture.mk
include /usr/share/ocaml/ocamlvars.mk

execute_before_dh_auto_configure:
	echo eio > debian/debian-dune
ifeq ($(DEB_BUILD_ARCH_BITS),64)
	echo eio_main >> debian/debian-dune
	echo eio_posix >> debian/debian-dune
ifeq ($(DEB_BUILD_ARCH_OS),linux)
	echo eio_linux >> debian/debian-dune
endif
endif

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