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 = . flake = .
.PHONY: boot .PHONY: boot
boot: boot: check
nixos-rebuild boot $(options) --flake $(flake) nixos-rebuild boot $(options) --flake $(flake)
.PHONY: reboot .PHONY: reboot
@ -10,11 +10,11 @@ reboot: boot
reboot reboot
.PHONY: switch .PHONY: switch
switch: switch: check
nixos-rebuild switch $(options) --flake $(flake) nixos-rebuild switch $(options) --flake $(flake)
.PHONY: trace .PHONY: trace
trace: trace: check
nixos-rebuild boot $(options) --show-trace --flake $(flake) nixos-rebuild boot $(options) --show-trace --flake $(flake)
.PHONY: update .PHONY: update
@ -22,7 +22,7 @@ update:
nix flake update nix flake update
.PHONY: live .PHONY: live
live: live: check
nix build $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage nix build $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
.PHONY: android .PHONY: android