comparison Makefile.docs @ 0:e0efe7848130

Initial commit. Untested!
author David Barts <davidb@stashtea.com>
date Thu, 16 Jul 2020 19:57:23 -0700
parents
children 404eb7e57fe6
comparison
equal deleted inserted replaced
-1:000000000000 0:e0efe7848130
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 $<