mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-25 07:29:01 -05:00
Use meson subcommands in build.sh and clean.sh
This commit is contained in:
parent
a9f6bc44dd
commit
363ecb4d54
7
build.sh
7
build.sh
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
target="test"
|
||||
if [ "$#" -ge 1 ]; then
|
||||
|
|
@ -10,4 +11,8 @@ fi
|
|||
export NINJA_STATUS="[%p %f/%t] "
|
||||
|
||||
# Build the project
|
||||
ninja -C build "$target" "$@"
|
||||
if [ "$target" = test ]; then
|
||||
"${MESON:-meson}" test -C build "$@"
|
||||
else
|
||||
"${MESON:-meson}" compile -C build "$target" "$@"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user