tool.mk 613 B

1234567891011121314151617181920
  1. TOOL_NAME := $(strip $(TOOL_NAME))
  2. ifeq ($(_THEOS_RULES_LOADED),)
  3. include $(THEOS_MAKE_PATH)/rules.mk
  4. endif
  5. internal-all:: $(TOOL_NAME:=.all.tool.variables);
  6. internal-stage:: $(TOOL_NAME:=.stage.tool.variables);
  7. TOOLS_WITH_SUBPROJECTS = $(strip $(foreach tool,$(TOOL_NAME),$(patsubst %,$(tool),$(call __schema_var_all,$(tool)_,SUBPROJECTS))))
  8. ifneq ($(TOOLS_WITH_SUBPROJECTS),)
  9. internal-clean:: $(TOOLS_WITH_SUBPROJECTS:=.clean.tool.subprojects)
  10. endif
  11. $(TOOL_NAME):
  12. @$(MAKE) -f $(_THEOS_PROJECT_MAKEFILE_NAME) --no-print-directory --no-keep-going $@.all.tool.variables
  13. $(eval $(call __mod,master/tool.mk))