diff options
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | nj | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -4,7 +4,7 @@ A collection of scripts to build and test [Mesa](https://www.mesa3d.org/) withou ## Scripts -- [nj](nj) - Run [ninja](https://github.com/ninja-build/ninja) from anywhere in the project git repository +- [nj](nj) - Run [ninja](https://github.com/ninja-build/ninja) from anywhere in the project git repository. (upstream: [nj repo](gitlab.freedesktop.org/kwg/nj)) - [mesa-run](mesa-run) - helper script. Not used directly. Requires [jq](https://github.com/jqlang/jq) - [mesa-debug](mesa-debug) - Debug build - [mesa-debug-asan](mesa-debug-asan) - Debug build with [AddressSanitizer](https://github.com/google/sanitizers/wiki/AddressSanitizer) @@ -73,5 +73,8 @@ cd "$builddir" extratargets="$(cat extratargets 2>/dev/null)" targets="${@:-all $extratargets}" -ninja $targets -[[ "$targets" == all* ]] && [ -e install ] && ninja install > /dev/null +ninja $targets || exit $? + +if [[ "$targets" == all* ]] && [ -e install ]; then + ninja install > /dev/null +fi |