#!/usr/bin/make -f # -*- makefile -*- include /usr/share/ocaml/ocamlvars.mk %: dh $@ --with ocaml --buildsystem ocaml_dune execute_after_dh_auto_install: # drop excess files rm -rf debian/tmp/usr/lib/ocaml/psmt2-frontend_bin find debian/tmp -name "LICENSE*" -delete find debian/tmp -name index.mld -delete find debian/tmp -name CHANGES.md -delete find debian/tmp -type d -empty -delete # we detect what to ship find debian/tmp -regextype posix-awk \ -regex '.*\.(cma|cmxs)$$' \ >> debian/libpsmt2-frontend-ocaml.install find debian/tmp -regextype posix-awk \ -regex '.*\.(a|cmi|cmo|cmt|cmti|cmx|cmxa|ml|mli|o])$$' \ >> debian/libpsmt2-frontend-ocaml-dev.install