1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/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$(OCAML_STDLIB_DIR)/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
|