add makefile
This commit is contained in:
parent
14e3b10d97
commit
8a3f7143bc
1 changed files with 12 additions and 0 deletions
12
Makefile
Normal file
12
Makefile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
|
||||
check-status:
|
||||
@if [ -n "$$(git status --porcelain)" ]; then \
|
||||
echo "Error: You have untracked or modified files. Please commit or stash your changes."; \
|
||||
exit 1; \
|
||||
fi
|
||||
echo Git is clean. :)
|
||||
|
||||
build: check-status
|
||||
NIXOS_LABEL := $(shell git rev-parse HEAD)
|
||||
sudo nixos-rebuild switch --flake .
|
||||
Loading…
Add table
Add a link
Reference in a new issue