Mercurial > cgi-bin > hgweb.cgi > ImagePrep
annotate Makefile.docs @ 16:2bb46da74667
Detect unsupported file types on input.
author | David Barts <n5jrn@me.com> |
---|---|
date | Mon, 20 Jul 2020 12:56:07 -0700 |
parents | e0efe7848130 |
children | 404eb7e57fe6 |
rev | line source |
---|---|
0 | 1 .PHONY: clean |
2 | |
3 all: Readme.rst Readme.pdf | |
4 | |
5 clean: | |
6 -rm *.rst *.pdf *.ps *.nrf | |
7 | |
8 %.rst : %.html | |
9 echo "[This file automatically generated by pandoc from '$<'.]" > $@ | |
10 echo "" >> $@ | |
11 pandoc --from=html --to=rst $< >> $@ | |
12 | |
13 %.nrf : %.html | |
14 echo ".so custom.tmac" > $@ | |
15 pandoc --from=html --to=ms $< | sed -e 's/^\.LP/.PP/' -e 's/^\.SH/.MYSH/' >> $@ | |
16 | |
17 %.ps: %.nrf custom.tmac | |
18 groff -Tps -t -ms $< > $@ | |
19 | |
20 %.pdf : %.ps | |
21 ps2pdf $< |