blob: 00f6e20dfc0f438cb2d168048c132629d0c0108b [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 && \
Matteo Scandoloe4f82a92017-09-13 13:54:44 -070010 ln -s ../../orchestration/xos-tosca/docs xos-tosca && \
Larry Petersonc8ee6462017-07-26 21:36:27 -070011 ln -s ../../orchestration/profiles profiles && \
12 gitbook init && gitbook install && gitbook build
llpbd786de2017-07-07 15:57:27 -070013
Matteo Scandolo8a76f922017-08-29 14:02:58 -070014book: clean build
15 gitbook serve
llpbd786de2017-07-07 15:57:27 -070016clean:
llp18276982017-07-11 11:28:47 -070017 rm -rf _book; \
Larry Peterson456ff2c2017-07-13 15:42:24 -070018 rm -rf node_modules; \
llp18276982017-07-11 11:28:47 -070019 rm platform-install; \
20 rm test; \
21 rm profiles; \
Larry Peterson456ff2c2017-07-13 15:42:24 -070022 rm xos; \
llp55525272017-08-02 14:32:36 -070023 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 Scandoloe4f82a92017-09-13 13:54:44 -070028 rm -f ../../orchestration/xos-tosca; \
llp55525272017-08-02 14:32:36 -070029 rm -f ../../orchestration/profiles/profiles
llp18276982017-07-11 11:28:47 -070030
Matteo Scandolof8cd29f2017-09-07 13:57:26 -070031swagger:
Matteo Scandolo2a8a64d2017-09-08 08:12:09 -070032 # pushd ../../orchestration/xos/; source scripts/setup_venv.sh; popd;
Matteo Scandolof8cd29f2017-09-07 13:57:26 -070033 pushd ../../orchestration/xos/docs/; make swagger_docs; popd;
34