diff options
| author | Joe Carstairs <me@joeac.net> | 2026-07-05 23:01:56 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-07-05 23:01:56 +0100 |
| commit | 56393380b9054600c80e9cb3db88ba69feff511b (patch) | |
| tree | d90eb34bcb9c713d238824aa8b03fae760f074ba /Makefile | |
| parent | d51d1a12663133cb32b6144d1bd3815cf92e1d53 (diff) | |
only make .env if dir exists
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
