# $Id: Makefile 77671 2026-02-07 23:16:44Z karl $ # Makefile for TeX Live documentation. Public domain. doc = texlive-en all: pdf html # in case we need to test changes against some previous version. #systex = /usr/local/texlive-rel/texmf-dist/tex// systex = : tlpre = # possible prefix to run from pretest, etc. env = TEXINPUTS=.:../texlive-en:../texlive-common:$(systex); export TEXINPUTS; pdflatex_opts = --file-line-error texline = '\nonstopmode\def\Status{1}\input $(doc)' pdflatex = $(tlpre) pdflatex $(pdflatex_opts) $(texline) # The story here is that for HTML, we just want tags referring to # the graphics (in ../texlive-common), without specifying any size, # since their natural size is ok (enough). But LaTeX's \includegraphics # requires a size (htlatex runs latex, not pdflatex, so it can't # determine the size for .png files), and tex4ht passes that warning on, # which is just an annoyance. We could generate .xbb files, but then # we'd have to update them every year, which seems like a waste of time # when we don't want a size in the first place. # texfot_pdf = texfot --ignore='Package microtype Warning: Unable to apply patch' texfot_html = texfot --ignore="Cannot determine size of graphic" \ --ignore='File.*\.xbb\"' \ pdf: rm -f *.aux *.toc *.lof *.lot *.xref* *.tmp *.out $(env) $(texfot_pdf) $(pdflatex) $(env) $(texfot_pdf) $(pdflatex) $(env) $(texfot_pdf) $(pdflatex) $(env) $(texfot_pdf) $(pdflatex) # It is best to use the htlatex wrapper since then we can easily specify # these options; using \Preamble in live4ht.cfg is not equivalent. # # The options here: # live4ht - reads our live4ht.cfg. # info - extra debugging info. # xhtml - required for html5. # html5 - output viewport decl to help on small screens. # charset - UTF-8 is more likely to work well than Latin 1. # fn-in - keep footnotes in the main output file. # # The other argument, where we pass, -cunihtf -utf8, goes along with the # charset and tells tex4ht to look for Unicode font encodings. See # https://tug.org/tex4ht. # htopts1 = "live4ht,info,xhtml,html5,charset=utf-8,fn-in" htopts2 = " -cunihtf -utf8" run_htlatex = $(env) $(texfot_html) htlatex $(doc) $(htopts1) $(htopts2)