Mercurial > cgi-bin > hgweb.cgi > ImagePrep
annotate Makefile.docs @ 31:99a0eb385c9a default tip
Work around annoying Swing glitch.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sat, 20 Aug 2022 09:19:49 -0700 |
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 $< |