5d33e4cd59
The stdenv phases don’t actually do anything (at least not anymore), and our justfile doesn’t behave the same as our docs. This patch removes the stdenv phases from the docs, documents our usage of just, and makes `just setup` heed `$mesonFlags`. Fixes #413. Fixes #414. Change-Id: Ieb0b2a8ae420526238b5f9a73d7849ec6919995d
27 lines
507 B
Makefile
27 lines
507 B
Makefile
# https://just.systems/man/en/
|
|
|
|
# List all available targets
|
|
list:
|
|
just --list
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
rm -rf build
|
|
|
|
# Prepare meson for building
|
|
setup:
|
|
meson setup build --prefix="$PWD/outputs/out" $mesonFlags
|
|
|
|
# Build lix
|
|
build *OPTIONS:
|
|
meson compile -C build {{ OPTIONS }}
|
|
|
|
alias compile := build
|
|
|
|
# Install lix for local development
|
|
install *OPTIONS: (build OPTIONS)
|
|
meson install -C build
|
|
|
|
# Run tests
|
|
test *OPTIONS:
|
|
meson test -C build --print-errorlogs {{ OPTIONS }}
|