Makefile : Add verify target.

This commit is contained in:
Dmitry Voronin 2024-04-28 23:29:50 +03:00
parent 3bbc8e08c3
commit 638a435a66
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -2,7 +2,7 @@ options = --option eval-cache false
flake = . flake = .
.PHONY: boot .PHONY: boot
boot: check boot: check verify
nixos-rebuild boot $(options) --flake $(flake) nixos-rebuild boot $(options) --flake $(flake)
.PHONY: reboot .PHONY: reboot
@ -10,7 +10,7 @@ reboot: boot
reboot reboot
.PHONY: switch .PHONY: switch
switch: switch: verify
nixos-rebuild switch $(options) --flake $(flake) nixos-rebuild switch $(options) --flake $(flake)
.PHONY: update .PHONY: update
@ -18,11 +18,11 @@ update:
nix flake update nix flake update
.PHONY: live .PHONY: live
live: check live: check verify
nix build -o live $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage nix build -o live $(options) $(flake)#nixosConfigurations.live.config.system.build.isoImage
.PHONY: android .PHONY: android
android: android: verify
nix-on-droid switch --flake $(flake) nix-on-droid switch --flake $(flake)
.PHONY: check .PHONY: check
@ -36,3 +36,7 @@ trace:
.PHONY: show .PHONY: show
show: show:
nix flake show nix flake show
.PHONY: verify
verify:
git verify-commit HEAD