blob: b725a42a18f85193db30e366acb479be49ff6a87 [file] [log] [blame]
Zack Williams1b96a952017-07-17 16:48:01 -07001default: serve
Matteo Scandolof8cd29f2017-09-07 13:57:26 -07002
Zack Williams1b96a952017-07-17 16:48:01 -07003GENERATED_DOCS = build_glossary.md
llpbd786de2017-07-07 15:57:27 -07004
Zack Williams1b96a952017-07-17 16:48:01 -07005serve: setup
Matteo Scandolo8a76f922017-08-29 14:02:58 -07006 gitbook serve
llp18276982017-07-11 11:28:47 -07007
Zack Williams1b96a952017-07-17 16:48:01 -07008build: setup
9 gitbook build
10
11setup: clean platform-install test profiles xos xos-gui xos-tosca swagger $(GENERATED_DOCS)
12 gitbook init
13 gitbook install
14
15platform-install:
16 ln -s ../platform-install/docs platform-install
17
18test:
19 ln -s ../../test/cord-tester/docs test
20
21profiles:
22 ln -s ../../orchestration/profiles profiles
23
24xos:
25 ln -s ../../orchestration/xos/docs xos
26
27xos-gui:
28 ln -s ../../orchestration/xos-gui/docs xos-gui
29
30xos-tosca:
31 ln -s ../../orchestration/xos-tosca/docs xos-tosca
32
33build_glossary.md: scripts/descriptions.md scripts/defaults.md.j2 scripts/defaultsdoc.py scripts/markedyaml.py
34 python scripts/defaultsdoc.py -o build_glossary.md
35
36swagger: xos
Matteo Scandolof8cd29f2017-09-07 13:57:26 -070037 pushd ../../orchestration/xos/docs/; make swagger_docs; popd;
38
Zack Williams1b96a952017-07-17 16:48:01 -070039clean:
40 rm -rf $(GENERATED_DOCS)
41 rm -rf _book
42 rm -rf node_modules
43 rm -f platform-install test profiles xos xos-gui xos-tosca
44