diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 8707dce..0000000 --- a/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -include make/vars.mk - -submake_file = $(shell [ -f "$(module)/Makefile" ] && echo "$(module)/Makefile") -install_submake_file = $(shell [ -f "$(module)/install.mk" ] && echo "$(module)/install.mk") - -define make_module_rule = -.PHONY: make_$(module) -make_$(module): $(module)/.env - $(if $(submake_file),\ - $(MAKE) --makefile=$(notdir $(submake_file)) --directory=$(module)) -endef - -define module_env_rule = -$(module)/.env: .env - cp .env $(module)/.env -endef - -define install_module_rule = -.PHONY: install_$(module) -install_$(module): install_openrc_$(module) $(install_submake_file) - $(if $(install_submake_file),$(MAKE) --makefile=$(notdir $(install_submake_file)) --directory=$(dir $(install_submake_file)) install) -endef - -define reinstall_module_rule = -.PHONY: reinstall_$(module) -reinstall_$(module): reinstall_openrc_$(module) $(install_submake_file) - $(if $(install_submake_file),$(MAKE) --makefile=$(notdir $(install_submake_file)) --directory=$(dir $(install_submake_file)) reinstall) -endef - -define uninstall_module_rule = -.PHONY: uninstall_$(module) -uninstall_$(module): uninstall_openrc_$(module) - $(if $(install_submake_file),\ - $(MAKE) --makefile=$(notdir $(install_submake_file)) --directory $(dir $(install_submake_file)) uninstall - ) -endef - -.PHONY: all -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))) - -.PHONY: install -install: $(ENV_RULES) $(INSTALL_RULES) install_crontab - -.PHONY: reinstall -reinstall: $(ENV_RULES) $(REINSTALL_RULES) reinstall_crontab - -.PHONY: uninstall -uninstall: uninstall_joeac.net_service $(UNINSTALL_RULES) uninstall_crontab - -$(foreach module,$(ALL_MODULES),$(eval $(install_module_rule))) -$(foreach module,$(ALL_MODULES),$(eval $(reinstall_module_rule))) -$(foreach module,$(ALL_MODULES),$(eval $(uninstall_module_rule))) - -.PHONY: clean -clean: - $(foreach module,$(MAKE_MODULES),$(MAKE) --directory=$(module) clean;) - -include make/container.mk -include make/openrc.mk -include make/crontab.mk |
