Mercurial > octave-nkf
comparison doc/interpreter/Makefile.am @ 15827:1f1fc4798f0a stable
doc: Produce .texi from .txi files using Perl rather than C++.
* munge-texi.pl: New Perl file to generate .texi files from .txi files.
* munge-texi.cc: Remove C++ file for generating .texi files.
* Makefile.am: Change build system to use munge-texi.pl
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 08 May 2012 21:03:42 -0700 |
parents | 72c96de7a403 |
children | 4e9dc46d4125 ebe8c2964451 |
comparison
equal
deleted
inserted
replaced
15741:f63a4f23bfe7 | 15827:1f1fc4798f0a |
---|---|
184 DOCSTRING_FILES = $(shell $(srcdir)/find-docstring-files.sh "$(top_srcdir)") | 184 DOCSTRING_FILES = $(shell $(srcdir)/find-docstring-files.sh "$(top_srcdir)") |
185 | 185 |
186 doc-cache: $(DOCSTRING_FILES) mk_doc_cache.m | 186 doc-cache: $(DOCSTRING_FILES) mk_doc_cache.m |
187 $(top_builddir)/run-octave -f -q -H $(srcdir)/mk_doc_cache.m doc-cache $(DOCSTRING_FILES) || { rm -f doc-cache; exit 1; } | 187 $(top_builddir)/run-octave -f -q -H $(srcdir)/mk_doc_cache.m doc-cache $(DOCSTRING_FILES) || { rm -f doc-cache; exit 1; } |
188 | 188 |
189 ## Program compiled only to help build documentation. No need to install | |
190 noinst_PROGRAMS = munge-texi | |
191 | |
192 munge_texi_SOURCES = munge-texi.cc | |
193 | |
194 $(MUNGED_TEXI_SRC): $(DOCSTRING_FILES) $(munge_texi_SOURCES) | 189 $(MUNGED_TEXI_SRC): $(DOCSTRING_FILES) $(munge_texi_SOURCES) |
195 | 190 |
196 %.texi: %.txi | 191 %.texi: %.txi munge-texi.pl |
197 @$(MAKE) $(AM_MAKEFLAGS) munge-texi$(BUILD_EXEEXT) | 192 $(PERL) $(srcdir)/munge-texi.pl $(top_srcdir) $(DOCSTRING_FILES) < $< > $@-t |
198 ./munge-texi $(top_srcdir) $(DOCSTRING_FILES) < $< > $@-t | |
199 mv $@-t $@ | 193 mv $@-t $@ |
200 | 194 |
201 contributors.texi: contributors.in | 195 contributors.texi: contributors.in |
202 $(AWK) -f $(srcdir)/mkcontrib.awk $(srcdir)/contributors.in > $@-t | 196 $(AWK) -f $(srcdir)/mkcontrib.awk $(srcdir)/contributors.in > $@-t |
203 mv $@-t $@ | 197 mv $@-t $@ |
251 images \ | 245 images \ |
252 images.awk \ | 246 images.awk \ |
253 images.mk \ | 247 images.mk \ |
254 mk_doc_cache.m \ | 248 mk_doc_cache.m \ |
255 mkcontrib.awk \ | 249 mkcontrib.awk \ |
250 munge-texi.pl \ | |
256 octave.dvi \ | 251 octave.dvi \ |
257 octave.html \ | 252 octave.html \ |
258 octave.pdf \ | 253 octave.pdf \ |
259 octave.ps \ | 254 octave.ps \ |
260 $(IMAGES) \ | 255 $(IMAGES) \ |