comparison Makefile.doc @ 31:3b0546fa0d74

Add documentation in alternative formats to HTML.
author David Barts <davidb@stashtea.com>
date Sat, 18 Apr 2020 09:08:23 -0700
parents
children 3d86f0391168
comparison
equal deleted inserted replaced
30:9bb5dfef3d2a 31:3b0546fa0d74
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/' >> $@
16
17 %.ps: %.nrf custom.tmac
18 groff -Tps -t -ms -mpdfmark $< > $@
19
20 %.pdf : %.ps
21 ps2pdf $<