subproject.mk 715 B

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