Mercurial > cgi-bin > hgweb.cgi > ImagePrep
annotate Makefile.docs @ 28:c310ec097194
Add Linux support.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 25 Dec 2020 19:07:47 -0800 |
parents | 404eb7e57fe6 |
children |
rev | line source |
---|---|
0 | 1 .PHONY: clean |
2 | |
27
404eb7e57fe6
Standardize things for Linux packaging.
David Barts <n5jrn@me.com>
parents:
0
diff
changeset
|
3 all: Readme.rst Readme.pdf Building.rst Building.pdf |
0 | 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 $< |