summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/man/man5/Makefile
blob: c0afb8965a5a22977d1b1b1906776c82aba0f026 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Public domain.  Originally written by Manuel Pegourie-Gonnard, 2008.

SRC = $(wildcard man5/*.5)
PDF = $(patsubst %.5, %.man5.pdf, $(SRC))

MKPDF = $(GROFF) $(PDFOPTS) $< | $(PSPDF) - $@.tmp && mv $@.tmp $@ || rm $@.tmp

all: pdf 
pdf: $(PDF)

clean:
	@echo 'Removing pdf files.'
	@rm -f -- $(PDF)

%.man5.pdf: %.5
	$(MKPDF)