Makefile : Check before build.

This commit is contained in:
Dmitry Voronin 2024-04-03 14:49:43 +03:00
parent 81cffe0b17
commit 1082ba16aa

View file

@ -2,7 +2,7 @@ options = --option eval-cache false
flake = .
.PHONY: boot
boot:
boot: check
nixos-rebuild boot $(options) --flake $(flake)
.PHONY: reboot
@ -10,11 +10,11 @@ reboot: boot
reboot
.PHONY: switch
switch:
switch: check
nixos-rebuild switch $(options) --flake $(flake)
.PHONY: trace
trace:
trace: check
nixos-rebuild boot $(options) --show-trace --flake $(flake)
.PHONY: update
@ -22,7 +22,7 @@ update:
nix flake update
.PHONY: live
live:
live: check
nix build $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
.PHONY: android