Mercurial > cgi-bin > hgweb.cgi > JpegWasher
comparison Makefile.docs @ 47:92b60ab62515
Rename so it doesn't look like an M$ word file.
author | David Barts <davidb@stashtea.com> |
---|---|
date | Mon, 04 May 2020 11:06:44 -0700 |
parents | Makefile.doc@5de364cb2847 |
children | 35fb8de77c7d |
comparison
equal
deleted
inserted
replaced
46:5de364cb2847 | 47:92b60ab62515 |
---|---|
1 .PHONY: clean | |
2 | |
3 all: Readme.rst Readme.pdf Building.rst Building.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 -mspdf $< > $@ | |
19 | |
20 %.pdf : %.ps | |
21 ps2pdf $< |