#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with ocaml

override_dh_auto_build:
	dune build -p ppx_base

override_dh_auto_install:
	dune install --destdir=$(CURDIR)/debian/tmp --prefix=/usr --libdir=$(OCAML_STDLIB_DIR)
	find $(CURDIR)/debian/tmp -name LICENSE.md -delete
	help2man $(CURDIR)/debian/tmp/usr/bin/ppx-base --no-discard-stderr > debian/ppx-base.1

override_dh_auto_test:
	# do nothing!
