Mercurial > cgi-bin > hgweb.cgi > ImagePrep
annotate Makefile.docs @ 22:d3979a2155a8
Fix out qual and max dim controls.
author | David Barts <n5jrn@me.com> |
---|---|
date | Mon, 23 Nov 2020 15:45:04 -0800 |
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 $< |