library.mk 664 B

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