tweak.mk 722 B

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