forked from kaitai-io/kaitai_struct_doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (40 loc) · 1.18 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
STYLESHEET=colony
TARGETS=\
out/svg/two_parents.svg \
out/svg/ci_overview.svg \
out/ci.html \
out/developers.html \
out/developers_intro.html \
out/faq.html \
out/ksy_diagram.html \
out/lang_cpp_stl.html \
out/lang_java.html \
out/lang_javascript.html \
out/lang_php.html \
out/lang_python.html \
out/new_language.html \
out/stream_api.html \
out/user_guide.html \
out/ksy_style_guide.html \
out/kst.html \
out/index.html
all: $(TARGETS)
rm -rf out/img
cp -r img styles js out
cp ksy_reference.html out
cp raw/pygments-default.css out/styles
cp -r docson/public/docson.js docson/public/lib/ out/js
cp -r docson/public/templates out
cp docson/public/css/docson.css out/styles
out/%.html: raw/%.html tmpl/navbar.html postprocess-html
./postprocess-html $< $@
raw/%.html: %.adoc styles/$(STYLESHEET).css raw/styles/$(STYLESHEET).css
TZ=UTC asciidoctor -a stylesheet! -a docinfo=shared,private -a nofooter -a source-highlighter=pygments -a pygments-style=default -r ./pygments_init.rb -a linkcss -D raw $<
raw/styles/$(STYLESHEET).css: styles/$(STYLESHEET).css
mkdir -p raw/styles
cp $< $@
out/svg/%.svg: dot/%.dot
mkdir -p out/svg
dot -Tsvg $< -o $@
clean:
rm -rf out