From ecad3632cca60e28caa99af321bef4d84810f958 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 25 Apr 2024 14:26:06 +0200 Subject: [PATCH] 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 --- justfile | 6 +++--- 1 file 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: