# this program; if not, write to the Free Software Foundation, Inc., 51
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
-# $Id: ocaml-vars.mk 4200 2007-08-27 13:18:18Z zack $
+# $Id: ocaml-vars.mk 4236 2007-08-31 09:45:13Z zack $
_cdbs_scripts_path ?= /usr/lib/cdbs
_cdbs_rules_path ?= /usr/share/cdbs/1/rules
# For debian/rules writers
OCAML_OCAMLDOC_FLAGS_MAN = -man-mini
+# where to install HTML version of the ocamldoc generated API reference. You
+# can use "$(cdbs_curpkg)" stem there, it will be expanded to the current
+# package name by CDBS
+# For debian/rules writers
+OCAML_OCAMLDOC_DESTDIR_HTML = usr/share/doc/$(cdbs_curpkg)/html/api
+
endif
# this program; if not, write to the Free Software Foundation, Inc., 51
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
-# $Id: ocaml.mk 4200 2007-08-27 13:18:18Z zack $
+# $Id: ocaml.mk 4236 2007-08-31 09:45:13Z zack $
_cdbs_scripts_path ?= /usr/lib/cdbs
_cdbs_rules_path ?= /usr/share/cdbs/1/rules
echo 'mkdir -p debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/html/api' ; \
mkdir -p debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/html/api ; \
echo 'invoking ocamldoc on debian/$(cdbs_curpkg)$(OCAML_STDLIB_DIR)/ ...' ; \
- # generate HTML documentation
find debian/$(cdbs_curpkg)$(OCAML_STDLIB_DIR)/ \
-type f -name '*.mli' -or -name '*.ml' \
| xargs ocamldoc $(OCAML_OCAMLDOC_FLAGS) \
-html $(OCAML_OCAMLDOC_FLAGS_HTML) \
- -d debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/html/api ; \
- ## generate manpages
- ## XXX dumb: find for *.ml{i,} is executed twice
- #find debian/$(cdbs_curpkg)$(OCAML_STDLIB_DIR)/ \
- # -type f -name '*.mli' -or -name '*.ml' \
- #| xargs ocamldoc $(OCAML_OCAMLDOC_FLAGS) \
- # -man $(OCAML_OCAMLDOC_FLAGS_MAN) \
- # -d debian/$(cdbs_curpkg)/usr/share/man/... # TODO ; \
+ -d $(OCAML_OCAMLDOC_DESTDIR_HTML) ; \
fi
# generate .in files counterpars before building, substituting @OCamlABI@
bug 4375
* don't ignore make clean error
- -- Sylvain Le Gall <gildor@debian.org> Fri, 31 Aug 2007 01:27:19 +0200
+ [ Stefano Zacchiroli ]
+ * CDBS class
+ - add support for specifying the target dir for generated documentation
+
+ -- Stefano Zacchiroli <zack@debian.org> Fri, 31 Aug 2007 11:23:46 +0200
ocaml (3.10.0-6) unstable; urgency=low