add .phony to makefile to fix home issues

This commit is contained in:
Dmitriy Pleshevskiy 2023-03-19 19:10:06 +03:00
parent c33106efda
commit c152fab521
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985

View file

@ -26,30 +26,37 @@ VPS := \
magenta \
canigou
.PHONY: help
help:
cat Makefile
define machine_rule
.PHONY: $(1)
$(1): ;
systemctl --user reset-failed
$$(NIX_RUN)switch/$(1)
.PHONY: $(1)-test
$(1)-test: ; $$(NIX_RUN)test/$(1)
endef
define vps_rule
.PHONY: $(1)
$(1): ; $$(NIX_RUN)deploy/$(1)
endef
$(foreach machine,$(MACHINES),$(eval $(call machine_rule,$(machine))))
$(foreach vps,$(VPS),$(eval $(call vps_rule,$(vps))))
deps-bump-my:
.PHONY: deps-my
deps-my:
$(NIX_LOCK) $(foreach dep,$(DEPS_MY),--update-input $(dep))
deps-bump-nixos:
.PHONY: deps-nixos
deps-nixos:
$(NIX_LOCK) $(foreach dep,$(DEPS_NIXOS),--update-input $(dep))
deps-bump-misc:
.PHONY: deps-misc
deps-misc:
$(NIX_LOCK) $(foreach dep,$(DEPS_MISC),--update-input $(dep))