blob: df03d5b0b3a1ba022549d85fa6b982529f649612 [file] [log] [blame]
Zack Williams1b96a952017-07-17 16:48:01 -07001default: serve
Matteo Scandolof8cd29f2017-09-07 13:57:26 -07002
Zack Williams2d04b0d2017-09-25 14:19:55 -07003# use bash for pushd/popd, and to fail if commands within a pipe fail
4SHELL = bash -o pipefail
5
Zack Williams1b96a952017-07-17 16:48:01 -07006GENERATED_DOCS = build_glossary.md
llpbd786de2017-07-07 15:57:27 -07007
Zack Williams1b96a952017-07-17 16:48:01 -07008serve: setup
Matteo Scandolo8a76f922017-08-29 14:02:58 -07009 gitbook serve
llp18276982017-07-11 11:28:47 -070010
Zack Williams1b96a952017-07-17 16:48:01 -070011build: setup
12 gitbook build
13
14setup: clean platform-install test profiles xos xos-gui xos-tosca swagger $(GENERATED_DOCS)
15 gitbook init
16 gitbook install
17
18platform-install:
19 ln -s ../platform-install/docs platform-install
20
21test:
22 ln -s ../../test/cord-tester/docs test
23
24profiles:
25 ln -s ../../orchestration/profiles profiles
26
27xos:
28 ln -s ../../orchestration/xos/docs xos
29
30xos-gui:
31 ln -s ../../orchestration/xos-gui/docs xos-gui
32
33xos-tosca:
34 ln -s ../../orchestration/xos-tosca/docs xos-tosca
35
36build_glossary.md: scripts/descriptions.md scripts/defaults.md.j2 scripts/defaultsdoc.py scripts/markedyaml.py
37 python scripts/defaultsdoc.py -o build_glossary.md
38
39swagger: xos
Matteo Scandolof8cd29f2017-09-07 13:57:26 -070040 pushd ../../orchestration/xos/docs/; make swagger_docs; popd;
41
Zack Williams1b96a952017-07-17 16:48:01 -070042clean:
43 rm -rf $(GENERATED_DOCS)
44 rm -rf _book
45 rm -rf node_modules
46 rm -f platform-install test profiles xos xos-gui xos-tosca
47