--- /dev/null
+Document: @PACKAGE@-ocamldoc-api-reference
+Title: @PACKAGE@ OCamldoc API Reference
+Abstract: API reference manual for @PACKAGE@ (generated via OCamldoc)
+Section: Applications/Programming
+
+Format: HTML
+Index: /usr/share/doc/@PACKAGE@/html/api/index.html
+Files: /usr/share/doc/@PACKAGE@/html/api/*
# this program; if not, write to the Free Software Foundation, Inc., 51
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
-# $Id: ocaml.mk 4266 2007-09-02 14:53:22Z zack $
+# $Id: ocaml.mk 4270 2007-09-02 16:00:28Z zack $
_cdbs_scripts_path ?= /usr/lib/cdbs
_cdbs_rules_path ?= /usr/share/cdbs/1/rules
endif
-# post-install hooks for invoking ocamldoc on OCAML_OCAMLDOC_PACKAGES packages
+# post-install hook to invoke ocamldoc on OCAML_OCAMLDOC_PACKAGES packages
$(patsubst %,binary-install/%,$(DEB_PACKAGES))::
@if (echo $(OCAML_OCAMLDOC_PACKAGES) | grep -w '$(cdbs_curpkg)' > /dev/null) ; then \
echo 'mkdir -p debian/$(cdbs_curpkg)/$(OCAML_OCAMLDOC_DESTDIR_HTML)' ; \
|| true ; \
fi
+# post-build hook to create doc-base entries for OCAML_OCAMLDOC_PACKAGES packages
+$(patsubst %,build/%,$(DEB_PACKAGES))::
+ @if (echo $(OCAML_OCAMLDOC_PACKAGES) | grep -w '$(cdbs_curpkg)' > /dev/null) ; then \
+ sed -e 's/@PACKAGE@/$(cdbs_curpkg)/g' \
+ $(_cdbs_class_path)/ocaml-docbase-template.txt$(_cdbs_makefile_suffix) \
+ > debian/$(cdbs_curpkg).doc-base.ocamldoc-apiref ; \
+ fi
+clean::
+ rm -f debian/*.doc-base.ocamldoc-apiref
+
# generate .in files counterpars before building, substituting @OCamlABI@
# markers with the proper value; clean stamps after building
pre-build:: ocamlinit
* CDBS class
- invoke ocamldoc after dh_install has been run (otherwise ocamldoc is
likely to generate empty API references ...)
+ - add support for automatic generation of doc-base entries for ocamldoc
+ generated API reference
- -- Stefano Zacchiroli <zack@debian.org> Sun, 02 Sep 2007 16:51:41 +0200
+ -- Stefano Zacchiroli <zack@debian.org> Sun, 02 Sep 2007 17:49:36 +0200
ocaml (3.10.0-7) unstable; urgency=low
-debian/cdbs/*.mk /usr/share/cdbs/1/class/
+debian/cdbs/* /usr/share/cdbs/1/class/
debian/ocaml-nox.override /usr/share/lintian/overrides/ocaml-nox
config/Makefile /usr/lib/ocaml/#OcamlABI#/config/Makefile
debian/native-archs /usr/lib/ocaml/#OcamlABI#/