| # Makefile for building CORD docs site, guide.opencord.org |
| # Building docs requires the following tools: |
| # - Gitbook toolchain: https://toolchain.gitbook.com/setup.html |
| # - NPM (for Gitbook and Swagger) |
| # - Python (for build glossary script) |
| # - linkchecker (for test target) http://wummel.github.io/linkchecker/ |
| # use bash for pushd/popd, and to fail if commands within a pipe fail |
| GENERATED_DOCS = build_glossary.md |
| setup: clean platform-install cord-tester profiles xos xos-gui xos-tosca swagger $(GENERATED_DOCS) |
| ln -s ../platform-install/docs platform-install |
| ln -s ../../test/cord-tester/docs cord-tester |
| ln -s ../../orchestration/profiles profiles |
| ln -s ../../orchestration/xos/docs xos |
| ln -s ../../orchestration/xos-gui/docs xos-gui |
| ln -s ../../orchestration/xos-tosca/docs xos-tosca |
| build_glossary.md: scripts/descriptions.md scripts/defaults.md.j2 scripts/defaultsdoc.py scripts/markedyaml.py |
| python scripts/defaultsdoc.py -o build_glossary.md |
| pushd ../../orchestration/xos/docs/; make swagger_docs; popd; |
| rm -f platform-install test profiles xos xos-gui xos-tosca |