forked from lix-project/lix
Merge "Improve the justfile" into main
This commit is contained in:
commit
8552519bb8
12
justfile
12
justfile
|
@ -1,19 +1,27 @@
|
||||||
# https://just.systems/man/en/
|
# https://just.systems/man/en/
|
||||||
|
|
||||||
|
# List all available targets
|
||||||
|
list:
|
||||||
|
just --list
|
||||||
|
|
||||||
|
# Clean build artifacts
|
||||||
clean:
|
clean:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
|
# Prepare meson for building
|
||||||
setup:
|
setup:
|
||||||
meson setup build --prefix="$PWD/outputs/out"
|
meson setup build --prefix="$PWD/outputs/out"
|
||||||
|
|
||||||
|
# Build lix
|
||||||
build *OPTIONS:
|
build *OPTIONS:
|
||||||
meson compile -C build {{ OPTIONS }}
|
meson compile -C build {{ OPTIONS }}
|
||||||
|
|
||||||
compile:
|
alias compile := build
|
||||||
just build
|
|
||||||
|
|
||||||
|
# Install lix for local development
|
||||||
install *OPTIONS: (build OPTIONS)
|
install *OPTIONS: (build OPTIONS)
|
||||||
meson install -C build
|
meson install -C build
|
||||||
|
|
||||||
|
# Run tests
|
||||||
test *OPTIONS:
|
test *OPTIONS:
|
||||||
meson test -C build --print-errorlogs --quiet {{ OPTIONS }}
|
meson test -C build --print-errorlogs --quiet {{ OPTIONS }}
|
||||||
|
|
Loading…
Reference in a new issue