view Makefile.doc @ 46:5de364cb2847

Doc tweaks.
author David Barts <davidb@stashtea.com>
date Mon, 04 May 2020 11:06:14 -0700
parents 3d86f0391168
children
line wrap: on
line source

.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 $<