From 047b37fc8d7bc289efcf1c590069d293d103bc71 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 20 Jun 2025 10:23:01 +0200 Subject: [PATCH] chore: Add EXTRA_ARGS support in Makefile --- Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index afdad81..7d60baa 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,9 @@ SYSTEM_ARGS = -L ./modules ./config.scm HOME_ARGS = -L ./home/modules ./home/home-configuration.scm TIMEMACHINE = guix time-machine -C channels-lock.scm +EXTRA_ARGS ?= -GUIX=target/guix/bin/guix +GUIX=$(TIMEMACHINE) -- target: channels-lock.scm channels-profile.scm channels-manifest.scm rm -rf target @@ -25,28 +26,28 @@ pull: channels-lock.scm channels-manifest.scm target --manifest=./channels-manifest.scm system-build: channels-lock.scm target - $(GUIX) system build $(SYSTEM_ARGS) + $(GUIX) system build $(SYSTEM_ARGS) $(EXTRA_ARGS) system-reconfigure: channels-lock.scm target - $(GUIX) system reconfigure $(SYSTEM_ARGS) --cores=10 --max-jobs=5 + $(GUIX) system reconfigure $(SYSTEM_ARGS) --cores=10 --max-jobs=5 $(EXTRA_ARGS) system-vm: channels-lock.scm target - $(GUIX) system vm $(SYSTEM_ARGS) + $(GUIX) system vm $(SYSTEM_ARGS) $(EXTRA_ARGS) system-container: channels-lock.scm target - $(GUIX) system container $(SYSTEM_ARGS) + $(GUIX) system container $(SYSTEM_ARGS) $(EXTRA_ARGS) home-build: channels-lock.scm target - $(GUIX) home build $(HOME_ARGS) + $(GUIX) home build $(HOME_ARGS) $(EXTRA_ARGS) home-reconfigure: channels-lock.scm target - $(GUIX) home reconfigure $(HOME_ARGS) --cores=10 --max-jobs=5 + $(GUIX) home reconfigure $(HOME_ARGS) --cores=10 --max-jobs=5 $(EXTRA_ARGS) home-container: channels-lock.scm target - $(GUIX) home container $(HOME_ARGS) + $(GUIX) home container $(HOME_ARGS) $(EXTRA_ARGS) system-repl: channels-lock.scm target - $(GUIX) repl -L modules -i ./repl-init.scm + $(GUIX) repl -L modules -i ./repl-init.scm $(EXTRA_ARGS) channels-lock.scm: channels.scm - guix time-machine -C channels.scm -- describe -f channels > channels-lock.scm + guix time-machine -C channels.scm -- describe -f channels $(EXTRA_ARGS) > channels-lock.scm -- 2.49.0