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