1
# latex-html.mk: build html documentation from LaTeX sources
3
################################################################
4
# Copyright (C) 2001 Tom Lord
5
# Copyright (C) 2003 Stig Brautaset
7
# See the file "COPYING" for further information about
8
# the copyright and warranty status of this work.
16
# Build html documentation from LaTeX sources
20
# $(latex-docs) LaTeX file to pass to `latex'
21
# (default: "manual.tex")
23
# Optionally set on entry:
26
# Program that creates a single
27
# html-file from each LaTeX source file
28
# (default: "htlatex")
30
# After "make html", the build directory will contain .html file(s) of
31
# documentation compiled from LaTeX sources.
35
include $(makefiles)/latex.mk
37
html-files := $(patsubst %.tex,%.html,$(latex-docs))
40
latex-to-html := htlatex
43
$(html-files): link-latex-files
44
cd $(latex-build-dir) ; \
45
$(latex-to-html) $(patsubst %.html,%.tex,$@)
47
html HTML: $(html-files)
48
cd $(latex-build-dir) ; \
50
echo $(html-files) > HTML
54
clean: clean-html-files
56
clean-doc: clean-html-files
59
for f in $(html-files) HTML ; do \
60
test ! -e $$f || rm -r $$f ; \
65
# arch-tag: Stig Brautaset Sun Mar 9 10:55:32 GMT 2003 (latex-html.mk)