update makefile

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-20 18:45:12 +03:00
parent d46465a4d3
commit 52c76bbe6a
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -1,17 +1,15 @@
NIX_RUN := nix run .\# NIX_RUN := nix run .\#
NIX_LOCK := nix flake lock NIX_LOCK := nix flake lock
DEPS_MY := \ DEPS_EDITOR := \
nixeovim nixeovim
DEPS_NIXOS := \ DEPS_SYSTEM := \
nixpkgs \ nixpkgs \
nixpkgs-unstable \ nixpkgs-unstable \
hardware \ hardware \
home-manager \ home-manager \
agenix agenix \
DEPS_MISC := \
wired \ wired \
nil nil
@ -56,17 +54,13 @@ rollback:
################################################################################ ################################################################################
.PHONY: deps-my .PHONY: deps-my
deps-my: deps-editor:
$(NIX_LOCK) $(foreach dep,$(DEPS_MY),--update-input $(dep)) $(NIX_LOCK) $(foreach dep,$(DEPS_EDITOR),--update-input $(dep))
.PHONY: deps-nixos .PHONY: deps-nixos
deps-nixos: deps-system:
$(NIX_LOCK) $(foreach dep,$(DEPS_NIXOS),--update-input $(dep)) $(NIX_LOCK) $(foreach dep,$(DEPS_SYSTEM),--update-input $(dep))
.PHONY: deps-misc
deps-misc:
$(NIX_LOCK) $(foreach dep,$(DEPS_MISC),--update-input $(dep))
.PHONY: deps .PHONY: deps
deps: deps-my deps-nixos deps-misc ; deps: deps-editor deps-system ;