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