Makefile : Check before build.
This commit is contained in:
parent
81cffe0b17
commit
1082ba16aa
8
Makefile
8
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue