view Makefile.docs @ 55:f5faf70c7d10

tabs to spaces
author David Barts <davidb@stashtea.com>
date Thu, 07 May 2020 14:21:23 -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 $<