1 files changed, 16 insertions(+), 15 deletions(-)
M Makefile
M Makefile => Makefile +16 -15
@@ 2,30 2,31 @@
SYSTEM_ARGS = -L ./modules ./config.scm
HOME_ARGS = -L ./home/modules ./home/home-configuration.scm
+TIMEMACHINE = guix time-machine -C channels.scm
-system-build:
- guix system build $(SYSTEM_ARGS)
+system-build: channels-lock.scm
+ $(TIMEMACHINE) -- guix system build $(SYSTEM_ARGS)
-system-reconfigure:
- guix system reconfigure $(SYSTEM_ARGS)
+system-reconfigure: channels-lock.scm
+ $(TIMEMACHINE) -- guix system reconfigure $(SYSTEM_ARGS)
-system-vm:
- guix system vm $(SYSTEM_ARGS)
+system-vm: channels-lock.scm
+ $(TIMEMACHINE) -- guix system vm $(SYSTEM_ARGS)
-system-container:
- guix system container $(SYSTEM_ARGS)
+system-container: channels-lock.scm
+ $(TIMEMACHINE) -- guix system container $(SYSTEM_ARGS)
-home-build:
- guix home build $(HOME_ARGS)
+home-build: channels-lock.scm
+ $(TIMEMACHINE) -- guix home build $(HOME_ARGS)
-home-reconfigure:
- guix home reconfigure $(HOME_ARGS)
+home-reconfigure: channels-lock.scm
+ $(TIMEMACHINE) -- guix home reconfigure $(HOME_ARGS)
-home-container:
- guix home container $(HOME_ARGS)
+home-container: channels-lock.scm
+ $(TIMEMACHINE) -- guix home container $(HOME_ARGS)
channels-lock.scm: channels.scm
- guix time-machine -C channels.scm -- describe -f channels > channels-lock.scm
+ $(TIMEMACHINE) -- describe -f channels > channels-lock.scm
pull: channels-lock.scm
guix pull -C channels-lock.scm