@@ -43,7 +43,7 @@ Targets
43
43
all-recursive:
44
44
Build all documents in the source tree.
45
45
46
- dvi, eps, jpg, pdf, png, ps, svg:
46
+ dvi, eps, html, jpg, pdf, png, ps, svg:
47
47
Build all documents with the specified file format in the current directory.
48
48
49
49
help:
@@ -179,6 +179,7 @@ LATEX =
179
179
DVIPS =
180
180
DVIPDF =
181
181
PS2PDF =
182
+ LATEXMLC =
182
183
DVISVGM =
183
184
PDFTOPPM =
184
185
GS =
@@ -212,6 +213,7 @@ PDFLATEX_DVI_OPT = -output-format=dvi
212
213
DVIPS_OPT = -Ppdf -z
213
214
DVIPDF_OPT =
214
215
PS2PDF_OPT = -dPDFSETTINGS=/prepress -dEmbedAllFonts=true
216
+ LATEXMLC_OPT =
215
217
DVISVGM_OPT = -n
216
218
PDFTOPPM_OPT = -singlefile
217
219
PDFTOPPM_JPG_OPT = -jpeg
@@ -248,7 +250,7 @@ CL_WARN = [35m
248
250
CL_ERROR = [31m
249
251
250
252
.SUFFIXES :
251
- .SUFFIXES : .log .bb .xbb .jpg .png .pdf .odt .eps .ps .svg .dvi .fmt .cls .sty .tex .dtx .ltx
253
+ .SUFFIXES : .log .bb .xbb .jpg .png .pdf .odt .eps .html . ps .svg .dvi .fmt .cls .sty .tex .dtx .ltx
252
254
253
255
DEPDIR = .dep
254
256
DIFFDIR = .diff
@@ -592,6 +594,11 @@ ps2pdf = $(call cache,ps2pdf_impl) $(PS2PDF_OPT)
592
594
593
595
ps2pdf_impl = $(call pathsearch2,ps2pdf,PS2PDF,ps2pdf)
594
596
597
+ # $(latexmlc)
598
+ latexmlc = $(call cache,latexmlc_impl) $(LATEXMLC_OPT )
599
+
600
+ latexmlc_impl = $(call pathsearch2,latexmlc,LATEXMLC,latexmlc)
601
+
595
602
# $(dvisvgm)
596
603
dvisvgm = $(call cache,dvisvgm_impl) $(DVISVGM_OPT )
597
604
@@ -864,6 +871,7 @@ cleanfiles_impl = $(wildcard $(strip \
864
871
$(srcltxfiles:.ltx=.fmt ) \
865
872
$(srctexfiles:.tex=.dvi ) \
866
873
$(srctexfiles:.tex=.eps ) \
874
+ $(srctexfiles:.tex=.html ) \
867
875
$(srctexfiles:.tex=.jpg ) \
868
876
$(srctexfiles:.tex=.pdf ) \
869
877
$(srctexfiles:.tex=.png ) \
@@ -1116,6 +1124,8 @@ dvi: $(target_basename:=.dvi)
1116
1124
1117
1125
eps : $(target_basename:=.eps )
1118
1126
1127
+ html : $(target_basename:=.html )
1128
+
1119
1129
jpg : $(target_basename:=.jpg )
1120
1130
1121
1131
pdf : $(target_basename:=.pdf )
@@ -2007,6 +2017,10 @@ check_rerun = grep 'Rerun\|Please rerun LaTeX' '$(build_prefix)$*.log' | grep -v
2007
2017
$( mv_epstopdf) , \
2008
2018
)
2009
2019
2020
+ .tex.html:
2021
+ @$( init_toolchain)
2022
+ @$( call exec,$( latexmlc) --destination=$* .html $< )
2023
+
2010
2024
# This always updates the timestamp of the target (.log).
2011
2025
$( build_prefix) %.log : %.tex
2012
2026
@$( MAKE) -s $* .$( default_target)
0 commit comments