File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ function print_usage()
2323# make it runnable from any location
2424# user shouldn't be confused from which dir this script has to be run
2525SCRIPT_DIR=$( cd " $( dirname " $0 " ) " && pwd)
26-
2726# expected paths of repositories needed for documentation process
2827SOF_REPO=$( dirname " $SCRIPT_DIR " )
2928DOCS_REPO=" $( dirname " $SOF_REPO " ) /sof-docs"
3029PUBLISH_REPO=" $( dirname " $SOF_REPO " ) /thesofproject.github.io"
30+ BUILD_DIR=" $( dirname " $SOF_REPO " ) /build-sof-docs"
3131
3232# parse arguments
3333DO_BUILD=false
7575 fi
7676fi
7777
78- cd " $SOF_REPO /doc"
79-
8078if " $DO_CLEAN "
8179then
8280 echo " Cleaning $SOF_REPO "
83- cmake .
81+ cd ${BUILD_DIR}
8482 make clean
8583 make doc-clean
8684fi
8785
8886if " $DO_BUILD "
8987then
9088 echo " Building $SOF_REPO "
91- cmake .
89+ cd " $SOF_REPO /doc"
90+ cmake -S . -B ${BUILD_DIR}
9291 make doc
9392fi
9493
You can’t perform that action at this time.
0 commit comments