view Makefile.docs @ 52:39895d44a287

Get help working on Linux.
author David Barts <n5jrn@me.com>
date Thu, 07 May 2020 09:59:28 -0700
parents 35fb8de77c7d
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 -ms $< > $@

%.pdf : %.ps
	ps2pdf $<