add .phony to makefile to fix home issues
This commit is contained in:
parent
c33106efda
commit
c152fab521
1 changed files with 10 additions and 3 deletions
13
Makefile
13
Makefile
|
@ -26,30 +26,37 @@ VPS := \
|
||||||
magenta \
|
magenta \
|
||||||
canigou
|
canigou
|
||||||
|
|
||||||
|
.PHONY: help
|
||||||
help:
|
help:
|
||||||
cat Makefile
|
cat Makefile
|
||||||
|
|
||||||
define machine_rule
|
define machine_rule
|
||||||
|
.PHONY: $(1)
|
||||||
$(1): ;
|
$(1): ;
|
||||||
systemctl --user reset-failed
|
systemctl --user reset-failed
|
||||||
$$(NIX_RUN)switch/$(1)
|
$$(NIX_RUN)switch/$(1)
|
||||||
|
|
||||||
|
.PHONY: $(1)-test
|
||||||
$(1)-test: ; $$(NIX_RUN)test/$(1)
|
$(1)-test: ; $$(NIX_RUN)test/$(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define vps_rule
|
define vps_rule
|
||||||
|
.PHONY: $(1)
|
||||||
$(1): ; $$(NIX_RUN)deploy/$(1)
|
$(1): ; $$(NIX_RUN)deploy/$(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(foreach machine,$(MACHINES),$(eval $(call machine_rule,$(machine))))
|
$(foreach machine,$(MACHINES),$(eval $(call machine_rule,$(machine))))
|
||||||
$(foreach vps,$(VPS),$(eval $(call vps_rule,$(vps))))
|
$(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))
|
$(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))
|
$(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))
|
$(NIX_LOCK) $(foreach dep,$(DEPS_MISC),--update-input $(dep))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue