summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-07-05 23:01:56 +0100
committerJoe Carstairs <me@joeac.net>2026-07-05 23:01:56 +0100
commit56393380b9054600c80e9cb3db88ba69feff511b (patch)
treed90eb34bcb9c713d238824aa8b03fae760f074ba /Makefile
parentd51d1a12663133cb32b6144d1bd3815cf92e1d53 (diff)
only make .env if dir exists
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8da5087..c996e09 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ endef
all: $(ENV_RULES) $(MAKE_RULES) $(BUILD_RULES) $(PUSH_RULES)
$(foreach module,$(ALL_MODULES),$(eval $(call make_module_rule)))
-$(foreach module,$(ALL_MODULES),$(eval $(call module_env_rule)))
+$(foreach module,$(ALL_MODULES),$(if $(shell test -d $(module) && echo 1),$(eval $(call module_env_rule))))
.PHONY: install
install: install_nginx $(ENV_RULES) $(INSTALL_RULES) install_crontab