2024-03-30 02:48:24 +00:00
|
|
|
# https://just.systems/man/en/
|
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
# List all available targets
|
|
|
|
list:
|
|
|
|
just --list
|
|
|
|
|
|
|
|
# Clean build artifacts
|
2024-03-30 02:48:24 +00:00
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
# Prepare meson for building
|
2024-03-30 02:48:24 +00:00
|
|
|
setup:
|
|
|
|
meson setup build --prefix="$PWD/outputs/out"
|
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
# Build lix
|
2024-04-25 12:26:06 +00:00
|
|
|
build *OPTIONS:
|
|
|
|
meson compile -C build {{ OPTIONS }}
|
2024-03-30 02:48:24 +00:00
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
alias compile := build
|
2024-03-30 02:48:24 +00:00
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
# Install lix for local development
|
2024-04-25 12:26:06 +00:00
|
|
|
install *OPTIONS: (build OPTIONS)
|
2024-03-30 02:48:24 +00:00
|
|
|
meson install -C build
|
|
|
|
|
2024-05-08 15:19:37 +00:00
|
|
|
# Run tests
|
2024-03-30 02:48:24 +00:00
|
|
|
test *OPTIONS:
|
|
|
|
meson test -C build --print-errorlogs --quiet {{ OPTIONS }}
|