forked from LitJSON/litjson
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
43 lines (32 loc) · 916 Bytes
/
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
website_dir = $(CURDIR)/../website
PANDOC_OPTS = \
-S -s --toc --toc-depth=2 -t html5 \
--css="css/docs.css"
##
## Quick Start Guide
##
QUICKSTART_OUT = out/quickstart.html
QUICKSTART_FILES = \
quickstart/intro.md \
quickstart/guide.md
##
## Rules
##
all: api quickstart
api:
quickstart: $(QUICKSTART_OUT)
$(QUICKSTART_OUT): $(QUICKSTART_FILES) template.htm
pandoc $(PANDOC_OPTS) --template=template.htm \
-V title="LitJSON Quickstart Guide" \
-V pagetitle="LitJSON Quickstart Guide" \
-o $(QUICKSTART_OUT) $(QUICKSTART_FILES)
website:
mkdir -p $(website_dir)/out/docs
cp -f out/css/docs.css $(website_dir)/out/css/
pandoc $(PANDOC_OPTS) --template=template-web.htm \
-V title="LitJSON Quickstart Guide" \
-V pagetitle="LitJSON Quickstart Guide" \
-o $(website_dir)/out/docs/quickstart.html $(QUICKSTART_FILES)
clean:
rm -rf $(QUICKSTART_OUT)
.PHONY: all api clean quickstart website