summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/man/man5/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/doc/man/man5/Makefile')
-rw-r--r--Master/texmf/doc/man/man5/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/texmf/doc/man/man5/Makefile b/Master/texmf/doc/man/man5/Makefile
new file mode 100644
index 00000000000..1f32aa2db53
--- /dev/null
+++ b/Master/texmf/doc/man/man5/Makefile
@@ -0,0 +1,19 @@
+SRC = $(wildcard man5/*.5)
+PDF = $(patsubst %.5, %.pdf, $(SRC))
+HTML = $(patsubst %.5, %.html, $(SRC))
+
+all: pdf
+pdf: $(PDF)
+html: $(HTML)
+
+clean:
+ @echo 'Removing pdf and html files.'
+ @rm -f -- $(PDF) $(HTML)
+
+%.pdf: %.5
+ $(GROFF) $(PDFOPTS) $< | $(PSPDF) - $@
+
+%.html: %.5
+ $(GROFF) $(HTMLOPTS) $< > $@
+
+