view Makefile.docs @ 10:70b4d11ebbb9

Update Readme.html.
author David Barts <n5jrn@me.com>
date Fri, 17 Jul 2020 23:25:33 -0700
parents e0efe7848130
children 404eb7e57fe6
line wrap: on
line source

.PHONY: clean

all: Readme.rst Readme.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 -ms $< > $@

%.pdf : %.ps
	ps2pdf $<