#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/ocaml/ocamlvars.mk %: dh $@ --with ocaml override_dh_auto_clean: dune clean override_dh_auto_configure: # do nothing override_dh_auto_build: dune build -p lablgtk3,lablgtk3-gtkspell3,lablgtk3-sourceview3 override_dh_auto_install: DESTDIR=$(CURDIR)/debian/tmp dune install # install into liblablgtk3-ocaml-dev all regular files of the # lablgtk3 dir that are not to be installed into liblablgtk3-ocaml # Same for liblablgtksourceview3 and liblablgtkspell3 (cd $(CURDIR)/debian/tmp; \ find usr/lib/ocaml/lablgtk3 \ -type f \ ! -exec grep -q '{}' ../liblablgtk3-ocaml.install \;\ -print \ >> ../liblablgtk3-ocaml-dev.install; \ find usr/lib/ocaml/lablgtk3-sourceview3 \ -type f \ ! -exec grep -q '{}' ../liblablgtksourceview3-ocaml.install \;\ -print \ >> ../liblablgtksourceview3-ocaml-dev.install; \ find usr/lib/ocaml/lablgtk3-gtkspell3 \ -type f \ ! -exec grep -q '{}' ../liblablgtkspell3-ocaml.install \;\ -print \ >> ../liblablgtkspell3-ocaml-dev.install) override_dh_ocaml: dh_ocaml --nodefined-map=liblablgtk3-ocaml-dev:GtkThread \ --nodefined-map=liblablgtk3-ocaml-dev:Gobject \ --nodefined-map=liblablgtk3-ocaml-dev:GtkSignal \ --nodefined-map=liblablgtk3-ocaml-dev:Gaux \ --nodefined-map=liblablgtk3-ocaml-dev:Gutf8 \ --nodefined-map=liblablgtk3-ocaml-dev:Gpointer \ --nodefined-map=liblablgtk3-ocaml-dev:Glib \