summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/man/man1/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-04-11 18:06:43 +0000
committerKarl Berry <karl@freefriends.org>2018-04-11 18:06:43 +0000
commitc0e4e1109a0311375c6fed2e615020fab8481336 (patch)
tree73dc3e2ca645b9fbd3dc487611e67a73195a7a4e /Master/texmf-dist/doc/man/man1/Makefile
parentb30d404d23bc2d9b4f0d0ed928776fec44186504 (diff)
remake utf-8 man pages, with expanded groff definitions from wl
git-svn-id: svn://tug.org/texlive/trunk@47444 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/man/man1/Makefile')
-rw-r--r--Master/texmf-dist/doc/man/man1/Makefile17
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.