Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 1 | default: serve |
Matteo Scandolo | f8cd29f | 2017-09-07 13:57:26 -0700 | [diff] [blame] | 2 | |
Zack Williams | 2d04b0d | 2017-09-25 14:19:55 -0700 | [diff] [blame^] | 3 | # use bash for pushd/popd, and to fail if commands within a pipe fail |
| 4 | SHELL = bash -o pipefail |
| 5 | |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 6 | GENERATED_DOCS = build_glossary.md |
llp | bd786de | 2017-07-07 15:57:27 -0700 | [diff] [blame] | 7 | |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 8 | serve: setup |
Matteo Scandolo | 8a76f92 | 2017-08-29 14:02:58 -0700 | [diff] [blame] | 9 | gitbook serve |
llp | 1827698 | 2017-07-11 11:28:47 -0700 | [diff] [blame] | 10 | |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 11 | build: setup |
| 12 | gitbook build |
| 13 | |
| 14 | setup: clean platform-install test profiles xos xos-gui xos-tosca swagger $(GENERATED_DOCS) |
| 15 | gitbook init |
| 16 | gitbook install |
| 17 | |
| 18 | platform-install: |
| 19 | ln -s ../platform-install/docs platform-install |
| 20 | |
| 21 | test: |
| 22 | ln -s ../../test/cord-tester/docs test |
| 23 | |
| 24 | profiles: |
| 25 | ln -s ../../orchestration/profiles profiles |
| 26 | |
| 27 | xos: |
| 28 | ln -s ../../orchestration/xos/docs xos |
| 29 | |
| 30 | xos-gui: |
| 31 | ln -s ../../orchestration/xos-gui/docs xos-gui |
| 32 | |
| 33 | xos-tosca: |
| 34 | ln -s ../../orchestration/xos-tosca/docs xos-tosca |
| 35 | |
| 36 | build_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 | |
| 39 | swagger: xos |
Matteo Scandolo | f8cd29f | 2017-09-07 13:57:26 -0700 | [diff] [blame] | 40 | pushd ../../orchestration/xos/docs/; make swagger_docs; popd; |
| 41 | |
Zack Williams | 1b96a95 | 2017-07-17 16:48:01 -0700 | [diff] [blame] | 42 | clean: |
| 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 | |