-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
69 lines (57 loc) · 2.19 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
RST2ODTOPTS = \
--create-links \
--create-sections \
--date \
--footnote-backlinks \
--rfc-references \
--section-numbering \
--stylesheet=./.cgl-style.odt \
--table-border-thickness=0 \
--time \
--toc-entry-backlinks \
--generate-oowriter-toc
RST2PDFOPTS = \
--first-page-on-right \
--inline-footnotes \
--smart-quotes=1 \
--stylesheets="./rst2pdf.css"
RST2HTMLOPTS = \
--compact-lists \
--embed-stylesheet \
--file-insertion-enabled \
--footnote-backlinks \
--footnote-references=superscript \
--leave-comments \
--leave-footnote-reference-space \
--rfc-base-url=http://www.faqs.org/rfcs/ \
--rfc-references \
--section-numbering \
--table-style=borderless \
--toc-entry-backlinks
all: specification requirements gaps deprecated
specification: specification.stamp
rst2odt ${RST2ODTOPTS} --title "CGL 5.0.1(draft) Requirements" cgl_5.0_specification.rst cgl_5.0_specification.odt
rst2pdf $(RST2PDFOPTS) cgl_5.0_specification.rst -o cgl_5.0_specification.pdf
rst2html $(RST2HTMLOPTS) cgl_5.0_specification.rst cgl_5.0_specification.html
requirements: requirements.stamp
rst2odt ${RST2ODTOPTS} --title "CGL 5.0.1(draft) Requirements" cgl_5.0_requirements.rst cgl_5.0_requirements.odt
rst2pdf $(RST2PDFOPTS) cgl_5.0_requirements.rst -o cgl_5.0_requirements.pdf
rst2html $(RST2HTMLOPTS) cgl_5.0_requirements.rst cgl_5.0_requirements.html
gaps: gaps.stamp
rst2odt ${RST2ODTOPTS} --title "CGL 5.0.1(draft) Gaps" cgl_5.0_gaps.rst cgl_5.0_gaps.odt
rst2pdf $(RST2PDFOPTS) cgl_5.0_gaps.rst -o cgl_5.0_gaps.pdf
rst2html $(RST2HTMLOPTS) cgl_5.0_gaps.rst cgl_5.0_gaps.html
deprecated: deprecated.stamp
rst2odt ${RST2ODTOPTS} --title "CGL 5.0.1(draft) Deprecated Requirements" cgl_5.0_deprecated.rst cgl_5.0_deprecated.odt
rst2pdf $(RST2PDFOPTS) cgl_5.0_deprecated.rst -o cgl_5.0_deprecated.pdf
rst2html $(RST2HTMLOPTS) cgl_5.0_deprecated.rst cgl_5.0_deprecated.html
specification.stamp:
touch .specification.stamp
requirements.stamp:
touch .requirements.stamp
gaps.stamp:
touch .gaps.stamp
deprecated.stamp:
touch .deprecated.stamp
clean:
rm -f .*.stamp *.odt *.html *.pdf