aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2024-04-25 14:26:06 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2024-04-25 14:26:38 +0200
commitecad3632cca60e28caa99af321bef4d84810f958 (patch)
tree0d1f6211eff716bd0415bf5541863dc97354cf87
parent111db8b38fd8350d92d72fa17fd3d9e8ef5a0e09 (diff)
justfile: allow passing args to `meson compile`
My main motivation for this change is to limit the amount of compile jobs to make sure my machine is still usable for something else when building a fresh Lix locally. Also made `build` a dependency of `install`: this is analogous to `make install` in CppNix where this both recompiles changed files and installs the artifacts into `outputs/out`. May be a little more pleasant to work with that, especially when you're used to contributing to CppNix. Change-Id: I321e2b0daf1c5e20f82c04e2dd158056c80ed86c
-rw-r--r--justfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/justfile b/justfile
index 8c81867f0..215650b77 100644
--- a/justfile
+++ b/justfile
@@ -6,13 +6,13 @@ clean:
setup:
meson setup build --prefix="$PWD/outputs/out"
-build:
- meson compile -C build
+build *OPTIONS:
+ meson compile -C build {{ OPTIONS }}
compile:
just build
-install:
+install *OPTIONS: (build OPTIONS)
meson install -C build
test *OPTIONS: