diff options
Diffstat (limited to 'Master/texmf-dist/doc/man/man1/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/man/man1/Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/man/man1/Makefile b/Master/texmf-dist/doc/man/man1/Makefile index c6761641213..c36f6619c21 100644 --- a/Master/texmf-dist/doc/man/man1/Makefile +++ b/Master/texmf-dist/doc/man/man1/Makefile @@ -4,14 +4,19 @@ SRC = $(wildcard man1/*.1) PDF = $(patsubst %.1, %.man1.pdf, $(SRC)) -MKPDF = $(GROFF) $(PDFOPTS) $< | $(PSPDF) - $@.tmp && mv $@.tmp $@ || rm $@.tmp +# these variables with automatic variables don't get passed to the +# submake; these definitions are repeated in man5/Makefile. +# All of this is more complicated than it needs to be. +PSPDF_MV = $(PSPDF) - $@.tmp && mv $@.tmp $@ || rm $@.tmp +MKPDF = $(GROFF) $(PDFOPTS) $< | $(PSPDF_MV) +MKPDF_UTF8 = env GROFF_FONT_PATH=../../../tlpkg/dev/groff-utf8 \ + $(GROFF) -K utf8 $(PDFOPTS) $< | $(PSPDF_MV) all: pdf pdf: $(PDF) - clean: @echo 'Removing pdf files.' - @rm -f -- $(PDF) + rm -f -- $(PDF) %.man1.pdf: %.1 $(MKPDF) @@ -21,9 +26,11 @@ clean: man1/mendex.man1.pdf: man1/mendex.1 @echo 'Skipping mendex.1, leaving it to texjp.' -# Special case for findhyph, which uses UTF-8. Maybe there are more? +# man pages which use UTF-8; probably there are more. man1/findhyph.man1.pdf: man1/findhyph.1 - $(GROFF) -K utf8 $(PDFOPTS) $< | $(PSPDF) - $@.tmp && mv $@.tmp $@ || rm $@.tmp + $(MKPDF_UTF8) +man1/luaotfload-tool.man1.pdf: man1/luaotfload-tool.1 + $(MKPDF_UTF8) # # See ../Makefile for the so.rules target which generates this list of rules. |