diff doc/interpreter/module.mk @ 22156:187b6727c75e

build doc-cache without running Octave (bug #48508) * mk_doc_cache.m: Delete. * doc/interpreter/mk-doc-cache.pl: New script, replaces mk_doc_cache.m. * doc/interpreter/module.mk: Update file lists. (doc/interpreter/doc-cache): Use perl script to generate to aid in cross builds. * libinterp/op-kw-docs: New file. * libinterp/module.mk: Update. (libinterp/DOCSTRINGS): Also include info from op-kw-docs. * pt-arg-list.cc (Fend): Include info in docstring about use of end as a language keyword. (install-built-in-docstrings): Depend on libinterp/DOCSTRINGS. Simplify rule now that libinterp/DOCSTRINGS is always generated in the build directory.
author John W. Eaton <jwe@octave.org>
date Thu, 21 Jul 2016 18:11:06 -0400
parents df50d42d4b1b
children 623b556e9d45
line wrap: on
line diff
--- a/doc/interpreter/module.mk	Sat Jul 16 14:03:34 2016 +1000
+++ b/doc/interpreter/module.mk	Thu Jul 21 18:11:06 2016 -0400
@@ -288,9 +288,9 @@
   doc/interpreter/doc-cache \
   doc/interpreter/macros.texi
 
-doc/interpreter/doc-cache: $(DOCSTRING_FILES) doc/interpreter/mk_doc_cache.m | $(OCTAVE_INTERPRETER_TARGETS) doc/interpreter/$(octave_dirstamp)
+doc/interpreter/doc-cache: $(DOCSTRING_FILES) doc/interpreter/mk-doc-cache.pl | $(OCTAVE_INTERPRETER_TARGETS) doc/interpreter/$(octave_dirstamp)
 	$(AM_V_GEN)rm -f $@-t $@ && \
-	$(SHELL) run-octave --norc --silent --no-history $(srcdir)/doc/interpreter/mk_doc_cache.m - $(srcdir) $(srcdir)/doc/interpreter/macros.texi $(DOCSTRING_FILES) > $@-t && \
+	$(PERL) $(srcdir)/doc/interpreter/mk-doc-cache.pl - $(srcdir) $(srcdir)/doc/interpreter/macros.texi -- $(DOCSTRING_FILES) > $@-t && \
 	mv $@-t $@
 
 $(MUNGED_TEXI_SRC): $(DOCSTRING_FILES)
@@ -342,7 +342,7 @@
   doc/interpreter/images.awk \
   doc/interpreter/images.mk \
   doc/interpreter/macros.texi \
-  doc/interpreter/mk_doc_cache.m \
+  doc/interpreter/mk-doc-cache.pl \
   doc/interpreter/mkcontrib.awk \
   doc/interpreter/munge-texi.pl \
   $(DOC_IMAGES) \