blob: 5082cb78458a0ec123c3e97b27a38dfaae5aef2f [file] [log] [blame]
Matteo Scandolof8cd29f2017-09-07 13:57:26 -07001SHELL := /bin/bash
2
llpbd786de2017-07-07 15:57:27 -07003default: book
4
Matteo Scandolof8cd29f2017-09-07 13:57:26 -07005build: swagger
Larry Petersonc8ee6462017-07-26 21:36:27 -07006 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 && \
10 ln -s ../../orchestration/profiles profiles && \
11 gitbook init && gitbook install && gitbook build
llpbd786de2017-07-07 15:57:27 -070012
Matteo Scandolo8a76f922017-08-29 14:02:58 -070013book: clean build
14 gitbook serve
llpbd786de2017-07-07 15:57:27 -070015clean:
llp18276982017-07-11 11:28:47 -070016 rm -rf _book; \
Larry Peterson456ff2c2017-07-13 15:42:24 -070017 rm -rf node_modules; \
llp18276982017-07-11 11:28:47 -070018 rm platform-install; \
19 rm test; \
20 rm profiles; \
Larry Peterson456ff2c2017-07-13 15:42:24 -070021 rm xos; \
llp55525272017-08-02 14:32:36 -070022 rm xos-gui; \
23 rm -f ../platform-install/docs/docs; \
24 rm -f ../../test/cord-tester/docs/docs; \
25 rm -f ../../orchestration/xos/docs/docs; \
26 rm -f ../../orchestration/xos-gui/docs/docs; \
27 rm -f ../../orchestration/profiles/profiles
llp18276982017-07-11 11:28:47 -070028
Matteo Scandolof8cd29f2017-09-07 13:57:26 -070029swagger:
30 pushd ../../orchestration/xos/; source scripts/setup_venv.sh; popd;
31 pushd ../../orchestration/xos/docs/; make swagger_docs; popd;
32