Matteo Scandolo | fa32eb4 | 2017-09-07 13:57:26 -0700 | [diff] [blame] | 1 | SHELL := /bin/bash |
| 2 | |
llp | bd786de | 2017-07-07 15:57:27 -0700 | [diff] [blame] | 3 | default: book |
| 4 | |
Matteo Scandolo | fa32eb4 | 2017-09-07 13:57:26 -0700 | [diff] [blame] | 5 | build: swagger |
Larry Peterson | c8ee646 | 2017-07-26 21:36:27 -0700 | [diff] [blame] | 6 | ln -s ../platform-install/docs platform-install && \ |
| 7 | ln -s ../../test/cord-tester/docs test && \ |
| 8 | ln -s ../../orchestration/xos/docs xos && \ |
| 9 | ln -s ../../orchestration/xos-gui/docs xos-gui && \ |
Matteo Scandolo | 456fc83 | 2017-09-13 13:54:44 -0700 | [diff] [blame] | 10 | ln -s ../../orchestration/xos-tosca/docs xos-tosca && \ |
Larry Peterson | c8ee646 | 2017-07-26 21:36:27 -0700 | [diff] [blame] | 11 | ln -s ../../orchestration/profiles profiles && \ |
| 12 | gitbook init && gitbook install && gitbook build |
llp | bd786de | 2017-07-07 15:57:27 -0700 | [diff] [blame] | 13 | |
Matteo Scandolo | 8a76f92 | 2017-08-29 14:02:58 -0700 | [diff] [blame] | 14 | book: clean build |
| 15 | gitbook serve |
llp | bd786de | 2017-07-07 15:57:27 -0700 | [diff] [blame] | 16 | clean: |
llp | 1827698 | 2017-07-11 11:28:47 -0700 | [diff] [blame] | 17 | rm -rf _book; \ |
Larry Peterson | 456ff2c | 2017-07-13 15:42:24 -0700 | [diff] [blame] | 18 | rm -rf node_modules; \ |
llp | 1827698 | 2017-07-11 11:28:47 -0700 | [diff] [blame] | 19 | rm platform-install; \ |
| 20 | rm test; \ |
| 21 | rm profiles; \ |
Larry Peterson | 456ff2c | 2017-07-13 15:42:24 -0700 | [diff] [blame] | 22 | rm xos; \ |
llp | 5552527 | 2017-08-02 14:32:36 -0700 | [diff] [blame] | 23 | rm xos-gui; \ |
| 24 | rm -f ../platform-install/docs/docs; \ |
| 25 | rm -f ../../test/cord-tester/docs/docs; \ |
| 26 | rm -f ../../orchestration/xos/docs/docs; \ |
| 27 | rm -f ../../orchestration/xos-gui/docs/docs; \ |
Matteo Scandolo | 456fc83 | 2017-09-13 13:54:44 -0700 | [diff] [blame] | 28 | rm -f ../../orchestration/xos-tosca; \ |
llp | 5552527 | 2017-08-02 14:32:36 -0700 | [diff] [blame] | 29 | rm -f ../../orchestration/profiles/profiles |
llp | 1827698 | 2017-07-11 11:28:47 -0700 | [diff] [blame] | 30 | |
Matteo Scandolo | fa32eb4 | 2017-09-07 13:57:26 -0700 | [diff] [blame] | 31 | swagger: |
Matteo Scandolo | 94f3100 | 2017-09-08 08:12:09 -0700 | [diff] [blame] | 32 | # pushd ../../orchestration/xos/; source scripts/setup_venv.sh; popd; |
Matteo Scandolo | fa32eb4 | 2017-09-07 13:57:26 -0700 | [diff] [blame] | 33 | pushd ../../orchestration/xos/docs/; make swagger_docs; popd; |
| 34 | |