blob: 1f646c77d2dcfc266efefc30a4eb6ee5dff675dd [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 && \
Matteo Scandolo456fc832017-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 && \
Matteo Scandolo300b3d52017-09-15 15:31:30 -070012 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; \
Matteo Scandolo300b3d52017-09-15 15:31:30 -070024 rm xos-tosca; \
llp55525272017-08-02 14:32:36 -070025 rm -f ../platform-install/docs/docs; \
26 rm -f ../../test/cord-tester/docs/docs; \
27 rm -f ../../orchestration/xos/docs/docs; \
28 rm -f ../../orchestration/xos-gui/docs/docs; \
Matteo Scandolo300b3d52017-09-15 15:31:30 -070029 rm -f ../../orchestration/xos-tosca/docs/docs; \
llp55525272017-08-02 14:32:36 -070030 rm -f ../../orchestration/profiles/profiles
llp18276982017-07-11 11:28:47 -070031
Matteo Scandolofa32eb42017-09-07 13:57:26 -070032swagger:
Matteo Scandolofa32eb42017-09-07 13:57:26 -070033 pushd ../../orchestration/xos/docs/; make swagger_docs; popd;
34