Mercurial > octave
comparison doc/module.mk @ 21206:15517574276a
doc: Add octave.css to HTML interpreter manual (patch #8888).
author | Oliver Heimlich <oheim@posteo.de> |
---|---|
date | Sat, 06 Feb 2016 22:38:13 +0100 |
parents | a610c00dc556 |
children | 7eca4ba9bb6d |
comparison
equal
deleted
inserted
replaced
21205:5e2023e6e3f5 | 21206:15517574276a |
---|---|
256 ## there are additional dependencies, so we include our own | 256 ## there are additional dependencies, so we include our own |
257 ## versions of the rules here. | 257 ## versions of the rules here. |
258 | 258 |
259 OCTAVE_HTML_DIR = doc/interpreter/octave.html | 259 OCTAVE_HTML_DIR = doc/interpreter/octave.html |
260 OCTAVE_HTML_TMP_DIR = $(OCTAVE_HTML_DIR:.html=.htp) | 260 OCTAVE_HTML_TMP_DIR = $(OCTAVE_HTML_DIR:.html=.htp) |
261 OCTAVE_HTML_CSS = $(OCTAVE_HTML_DIR)/octave.css | |
261 OCTAVE_HTML_STAMP = $(OCTAVE_HTML_DIR)/.octave-html-stamp | 262 OCTAVE_HTML_STAMP = $(OCTAVE_HTML_DIR)/.octave-html-stamp |
262 | 263 |
263 $(srcdir)/doc/interpreter/octave.info: $(DOC_IMAGES_TXT) $(octave_TEXINFOS) | 264 $(srcdir)/doc/interpreter/octave.info: $(DOC_IMAGES_TXT) $(octave_TEXINFOS) |
264 doc/interpreter/octave.dvi: $(DOC_IMAGES_EPS) $(octave_TEXINFOS) | 265 doc/interpreter/octave.dvi: $(DOC_IMAGES_EPS) $(octave_TEXINFOS) |
265 doc/interpreter/octave.pdf: $(DOC_IMAGES_PDF) $(octave_TEXINFOS) | 266 doc/interpreter/octave.pdf: $(DOC_IMAGES_PDF) $(octave_TEXINFOS) |
301 | 302 |
302 doc/interpreter/octave.html: $(OCTAVE_HTML_STAMP) | 303 doc/interpreter/octave.html: $(OCTAVE_HTML_STAMP) |
303 | 304 |
304 $(OCTAVE_HTML_STAMP): doc/interpreter/octave.texi $(srcdir)/doc/interpreter/version-octave.texi | doc/interpreter/$(am__dirstamp) | 305 $(OCTAVE_HTML_STAMP): doc/interpreter/octave.texi $(srcdir)/doc/interpreter/version-octave.texi | doc/interpreter/$(am__dirstamp) |
305 $(AM_V_MAKEINFO)rm -rf $(OCTAVE_HTML_DIR) | 306 $(AM_V_MAKEINFO)rm -rf $(OCTAVE_HTML_DIR) |
306 $(AM_V_at)if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I doc/interpreter -I $(abs_top_srcdir)/doc/interpreter \ | 307 $(AM_V_at)if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \ |
308 -I doc/interpreter -I $(abs_top_srcdir)/doc/interpreter \ | |
309 --css-ref=octave.css \ | |
307 -o $(OCTAVE_HTML_TMP_DIR) `test -f 'doc/interpreter/octave.texi' || echo '$(abs_top_srcdir)/'`doc/interpreter/octave.texi; \ | 310 -o $(OCTAVE_HTML_TMP_DIR) `test -f 'doc/interpreter/octave.texi' || echo '$(abs_top_srcdir)/'`doc/interpreter/octave.texi; \ |
308 then \ | 311 then \ |
309 rm -rf $(OCTAVE_HTML_DIR) && \ | 312 rm -rf $(OCTAVE_HTML_DIR) && \ |
310 mv $(OCTAVE_HTML_TMP_DIR) $(OCTAVE_HTML_DIR) && \ | 313 mv $(OCTAVE_HTML_TMP_DIR) $(OCTAVE_HTML_DIR) && \ |
311 touch $@; \ | 314 touch $@; \ |
312 else \ | 315 else \ |
313 rm -rf $(OCTAVE_HTML_TMP_DIR); exit 1; \ | 316 rm -rf $(OCTAVE_HTML_TMP_DIR); exit 1; \ |
314 fi | 317 fi |
315 | 318 |
316 $(HTMLDIR_IMAGES) : doc/interpreter/octave.html/%.png: doc/interpreter/%.png $(OCTAVE_HTML_STAMP) | 319 $(HTMLDIR_IMAGES) $(OCTAVE_HTML_CSS) : doc/interpreter/octave.html/%: doc/interpreter/% $(OCTAVE_HTML_STAMP) |
317 $(AM_V_GEN)cp $< $@ | 320 $(AM_V_GEN)cp $< $@ |
318 | 321 |
319 DOC_TARGETS += \ | 322 DOC_TARGETS += \ |
320 $(srcdir)/doc/interpreter/octave.info \ | 323 $(srcdir)/doc/interpreter/octave.info \ |
321 doc/interpreter/doc-cache \ | 324 doc/interpreter/doc-cache \ |
322 doc/interpreter/octave.ps \ | 325 doc/interpreter/octave.ps \ |
323 doc/interpreter/octave.pdf \ | 326 doc/interpreter/octave.pdf \ |
324 $(OCTAVE_HTML_STAMP) \ | 327 $(OCTAVE_HTML_STAMP) \ |
325 $(HTMLDIR_IMAGES) | 328 $(HTMLDIR_IMAGES) \ |
329 $(OCTAVE_HTML_CSS) | |
326 | 330 |
327 doc_EXTRA_DIST += \ | 331 doc_EXTRA_DIST += \ |
328 $(BUILT_OCTAVE_TEXI_SRC) \ | 332 $(BUILT_OCTAVE_TEXI_SRC) \ |
329 $(srcdir)/doc/interpreter/octave.info \ | 333 $(srcdir)/doc/interpreter/octave.info \ |
330 doc/interpreter/TODO \ | 334 doc/interpreter/TODO \ |
331 doc/interpreter/doc-cache \ | 335 doc/interpreter/doc-cache \ |
332 doc/interpreter/octave.dvi \ | 336 doc/interpreter/octave.dvi \ |
333 doc/interpreter/octave.ps \ | 337 doc/interpreter/octave.ps \ |
334 doc/interpreter/octave.pdf \ | 338 doc/interpreter/octave.pdf \ |
335 doc/interpreter/octave.html \ | 339 doc/interpreter/octave.html \ |
336 $(HTMLDIR_IMAGES) | 340 $(HTMLDIR_IMAGES) \ |
341 $(OCTAVE_HTML_CSS) | |
337 | 342 |
338 # Prevent packaging of distribution unless all libraries | 343 # Prevent packaging of distribution unless all libraries |
339 # necessary to create documentation are present | 344 # necessary to create documentation are present |
340 doc-interpreter-dist-hook: | 345 doc-interpreter-dist-hook: |
341 @$(GREP) '#define HAVE_COLAMD 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing COLAMD library. Cannot package distribution!" ; exit 1; } | 346 @$(GREP) '#define HAVE_COLAMD 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing COLAMD library. Cannot package distribution!" ; exit 1; } |