Skip to content

Commit 841e74f

Browse files
committed
scripts: gen-doc: move all build output of source directory.
Move the intermediate doxygen build output out of the source directory. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent 7e09d6c commit 841e74f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

scripts/gen-doc.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
2525
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
26-
2726
# expected paths of repositories needed for documentation process
2827
SOF_REPO=$(dirname "$SCRIPT_DIR")
2928
DOCS_REPO="$(dirname "$SOF_REPO")/sof-docs"
3029
PUBLISH_REPO="$(dirname "$SOF_REPO")/thesofproject.github.io"
30+
BUILD_DIR="$(dirname "$SOF_REPO")/build-sof-docs"
3131

3232
# parse arguments
3333
DO_BUILD=false
@@ -75,20 +75,19 @@ then
7575
fi
7676
fi
7777

78-
cd "$SOF_REPO/doc"
79-
8078
if "$DO_CLEAN"
8179
then
8280
echo "Cleaning $SOF_REPO"
83-
cmake .
81+
cd ${BUILD_DIR}
8482
make clean
8583
make doc-clean
8684
fi
8785

8886
if "$DO_BUILD"
8987
then
9088
echo "Building $SOF_REPO"
91-
cmake .
89+
cd "$SOF_REPO/doc"
90+
cmake -S . -B ${BUILD_DIR}
9291
make doc
9392
fi
9493

0 commit comments

Comments
 (0)