#!/usr/bin/make -f
export DH_VERBOSE = 1

include /usr/share/ocaml/ocamlvars.mk

VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
MAN_NAME_SECTION="Markdown frontend in pure OCaml"

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

execute_after_dh_auto_install:
	help2man $(CURDIR)/debian/tmp/usr/bin/omd --name=$(MAN_NAME_SECTION) --version-string=$(VERSION) > debian/omd.1
