Mercurial > cgi-bin > hgweb.cgi > JpegWasher
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile.docs Mon May 04 11:06:44 2020 -0700 @@ -0,0 +1,21 @@ +.PHONY: clean + +all: Readme.rst Readme.pdf Building.rst Building.pdf + +clean: + -rm *.rst *.pdf *.ps *.nrf + +%.rst : %.html + echo "[This file automatically generated by pandoc from '$<'.]" > $@ + echo "" >> $@ + pandoc --from=html --to=rst $< >> $@ + +%.nrf : %.html + echo ".so custom.tmac" > $@ + pandoc --from=html --to=ms $< | sed -e 's/^\.LP/.PP/' -e 's/^\.SH/.MYSH/' >> $@ + +%.ps: %.nrf custom.tmac + groff -Tps -t -mspdf $< > $@ + +%.pdf : %.ps + ps2pdf $<