blob: 278e36a511e416a1d9e327ad2684e0a1974aafc9 [file] [log] [blame]
Matteo Scandolofa32eb42017-09-07 13:57:26 -07001SHELL := /bin/bash
2
llpbd786de2017-07-07 15:57:27 -07003default: book
4
Matteo Scandolofa32eb42017-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 Scandolofa32eb42017-09-07 13:57:26 -070029swagger:
Matteo Scandolo94f31002017-09-08 08:12:09 -070030 # pushd ../../orchestration/xos/; source scripts/setup_venv.sh; popd;
Matteo Scandolofa32eb42017-09-07 13:57:26 -070031 pushd ../../orchestration/xos/docs/; make swagger_docs; popd;
32