mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 17:39:27 +02:00
35 lines
782 B
Makefile
35 lines
782 B
Makefile
#
|
|
# Make latex using tex4ht
|
|
#
|
|
HTFONTS=/usr/share/texmf/tex/generic/tex4ht/ht-fonts/
|
|
.PHONY: preamble3 preamble4 $(HTML)
|
|
|
|
htmlincludes: includes
|
|
|
|
preamble3:
|
|
cp preamble.ts3 preamble.inc
|
|
|
|
preamble4:
|
|
cp preamble.ts4 preamble.inc
|
|
|
|
%.html: %.tex
|
|
rm -f $(basename $<).aux $(basename $<).idx
|
|
rm -f $(basename $<).toc $(basename $<).ind
|
|
$(LATEX) $<
|
|
$(LATEX) $<
|
|
$(LATEX) $<
|
|
tex4ht $< -i$(HTFONTS)
|
|
install -d $(basename $<) -m755
|
|
t4ht $< -d$(basename $<)/ -m644
|
|
|
|
|
|
user: htmlincludes preamble3 user.html
|
|
units: htmlincludes preamble3 units.html
|
|
prog: htmlincludes preamble3 prog.html
|
|
onechap: htmlincludes preamble3 onechap.html
|
|
ref: htmlincludes preamble4 ref.html
|
|
fpdoc: htmlincludes preamble3 fpdoc.html
|
|
chart: htmlincludes preamble3 chart.html
|
|
|
|
html: htmlincludes $(HTML)
|