Skip to content
Snippets Groups Projects
Commit 78a0c456 authored by Alexis Durgnat's avatar Alexis Durgnat :milky_way:
Browse files

Build documentation by default

parent c4f499b4
Branches
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ function copy_artifacts() { ...@@ -64,7 +64,7 @@ function copy_artifacts() {
echo -e "${YLW}=== Lib (${GRN}./build/lib${YLW}): ===${NC}" echo -e "${YLW}=== Lib (${GRN}./build/lib${YLW}): ===${NC}"
echo "`find /build/lib/ -type f | sed 's/\/build\/lib\///g'`" echo "`find /build/lib/ -type f | sed 's/\/build\/lib\///g'`"
echo -e "${YLW}=== Python Wrapper (${GRN}./build/wrapper${YLW}): ===${NC}" echo -e "${YLW}=== Python Wrapper (${GRN}./build/wrapper${YLW}): ===${NC}"
echo "`find /build/wrapper/ -type f | sed 's/\/build\/wrapper\///g'`" echo "`find /build/wrapper/ -type f -not -path "/build/wrapper/docs/*" | sed 's/\/build\/wrapper\///g'`"
echo_links echo_links
} }
...@@ -152,7 +152,8 @@ if [ $# -gt 0 ]; then ...@@ -152,7 +152,8 @@ if [ $# -gt 0 ]; then
if [ $# -lt 1 ]; then if [ $# -lt 1 ]; then
# Clean everything if there isn't any provided component # Clean everything if there isn't any provided component
make_target $SBOX_LIB clean make_target $SBOX_LIB clean
make_target $SBOX_PYWR clean make_target $SBOX_PYWR clean
clean_python_doc
else else
for i in "$@"; do for i in "$@"; do
# Clean every component passed in parameters # Clean every component passed in parameters
...@@ -161,6 +162,8 @@ if [ $# -gt 0 ]; then ...@@ -161,6 +162,8 @@ if [ $# -gt 0 ]; then
cd $app cd $app
make clean make clean
done done
elif [ $i = "docs" ]; then
clean_python_doc
else else
pth=$(get_target_path "$i") pth=$(get_target_path "$i")
make_target $pth clean make_target $pth clean
...@@ -188,6 +191,7 @@ fi ...@@ -188,6 +191,7 @@ fi
# If we're here, there wasn't any argument provided, so we just build # If we're here, there wasn't any argument provided, so we just build
# everything and copy the output. # everything and copy the output.
build_all build_all
build_doc
copy_artifacts copy_artifacts
exit 0 exit 0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment