annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
1 .PHONY: clean
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
2
33
3d86f0391168 Work on improving the build system.
David Barts <davidb@stashtea.com>
parents: 31
diff changeset
3 all: Readme.rst Readme.pdf Building.rst Building.pdf
31
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
4
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
5 clean:
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
6 -rm *.rst *.pdf *.ps *.nrf
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
7
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
8 %.rst : %.html
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
9 echo "[This file automatically generated by pandoc from '$<'.]" > $@
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
10 echo "" >> $@
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
11 pandoc --from=html --to=rst $< >> $@
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
12
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
13 %.nrf : %.html
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
14 echo ".so custom.tmac" > $@
46
5de364cb2847 Doc tweaks.
David Barts <davidb@stashtea.com>
parents: 33
diff changeset
15 pandoc --from=html --to=ms $< | sed -e 's/^\.LP/.PP/' -e 's/^\.SH/.MYSH/' >> $@
31
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
16
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
17 %.ps: %.nrf custom.tmac
48
35fb8de77c7d Is it finally generating decent PDF's?
David Barts <davidb@stashtea.com>
parents: 47
diff changeset
18 groff -Tps -t -ms $< > $@
31
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
19
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
20 %.pdf : %.ps
3b0546fa0d74 Add documentation in alternative formats to HTML.
David Barts <davidb@stashtea.com>
parents:
diff changeset
21 ps2pdf $<