2024-07-12 15:59:26 +00:00
|
|
|
|
|
|
|
|
|
MB_PROJ_META_GROUP_ID ?=
|
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_PROJ_META_GROUP_ID,"The project group id.")
|
|
|
|
|
|
|
|
|
|
MB_PROJ_META_ARTIFACT_ID ?=
|
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_PROJ_META_ARTIFACT_ID,"The project artifact id.")
|
|
|
|
|
|
|
|
|
|
MB_PROJ_META_VERSION ?=
|
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_PROJ_META_VERSION,"The project version.")
|
|
|
|
|
|
|
|
|
|
MB_PROJ_META_NAME ?=
|
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_PROJ_META_NAME,"The project name.")
|
|
|
|
|
|
|
|
|
|
MB_PROJ_META_DESCRIPTION ?=
|
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_PROJ_META_DESCRIPTION,"The project description.")
|
|
|
|
|
|
|
|
|
|
MB_PROJ_META_WEBSITE ?=
|
|
|
|
|
$(call mb_make_call,mb_doc_variable,MB_PROJ_META_WEBSITE,"The project website location.")
|
|
|
|
|
|
2024-07-12 17:03:09 +00:00
|
|
|
|
MB_PROJ_PHASE_ALL = @clean @init @prepare @process @compile @link @build @test @package @package-qa @package-deploy @all
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_variable_rock,MB_PROJ_PHASE_ALL,"All the phases of an project with flow steps.")
|
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
MB_PROJ_FIRE_MODULE_INIT ?=
|
|
|
|
|
$(call mb_make_call,mb_doc_variable_flow,MB_PROJ_FIRE_MODULE_INIT,"List of unique module project structure targets.")
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
MB_PROJ_FIRE_MODULE_RUN ?=
|
|
|
|
|
$(call mb_make_call,mb_doc_variable_flow,MB_PROJ_FIRE_MODULE_RUN,"List of unique module project modules run targets.")
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 18:53:44 +00:00
|
|
|
|
MB_PROJ_FIRE_ASSERT_SUCCESS ?=
|
|
|
|
|
$(call mb_make_call,mb_doc_variable_flow,MB_PROJ_FIRE_ASSERT_SUCCESS,"Word count of total asserts successes.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define mb_proj_grow_assert_success
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_arg1,$(0),$(1))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_value_valid,$(0),$(1),@test @package-qa)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval MB_PROJ_FIRE_ASSERT_SUCCESS $(MB_MAKE_APPEND) $(1))
|
|
|
|
|
endef
|
|
|
|
|
$(call mb_make_call,mb_doc_function_deep,mb_proj_grow_assert_success,"Grow the success counter of assertions.","<phase-id>")
|
|
|
|
|
|
|
|
|
|
|
2024-07-12 15:59:26 +00:00
|
|
|
|
define mb_proj_grow_deps_phase
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_arg2,$(0),$(1),$(2))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_value_valid,$(0),$(1),$(MB_PROJ_PHASE_ALL))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval @$(1)-deps:: $(2))
|
|
|
|
|
endef
|
2024-07-14 18:53:44 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_function_deep,mb_proj_grow_deps_phase_clean,"Grow the deps of the selected phase.","<phase> <slave-target>")
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define _mb_proj_flow_step_before
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(filter $(subst @@,@,$@),$(MB_PROJ_PHASE_ALL)),$(call mb_make_call,mb_os_echo_phase,$(MB_I18N_PROJ_STEP_BEFORE) $@))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
endef
|
|
|
|
|
define _mb_proj_flow_step_done
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(filter $@,$(MB_PROJ_PHASE_ALL)),$(call mb_make_call,mb_os_echo_phase,$(MB_I18N_PROJ_STEP_AFTER) $@))
|
2024-07-14 22:31:46 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(value MAKECMDGOALS),$(if $(filter $@,$(MAKECMDGOALS)),$(call mb_make_call,mb_os_echo_report,$(MB_I18N_PROJ_OPENMSX_COUNT) $(words $(MB_OPENMSX_FIRE_PIPE_SMOKE)))))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(value MAKECMDGOALS),$(if $(filter $@,$(MAKECMDGOALS)),$(call mb_make_call,mb_os_echo_good,$(MB_I18N_PROJ_STEP_DONE) $@)))
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define __mb_flow_proj_setup
|
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPE)
|
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@clean: $(2)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@clean)
|
|
|
|
|
$(3)@@clean-deps:: $(2)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@clean-deps)
|
|
|
|
|
$(3)@clean: $(3)@@clean $(3)@@clean-deps
|
|
|
|
|
$(MB_@RECIPE)$$(if $$(wildcard $(1)),$$(call mb_make_call,mb_os_echo_command,$$(MB_I18N_PROJ_DIR_DELETE) $(1)))
|
|
|
|
|
$(MB_@RECIPE)$$(if $$(wildcard $(1)),$$(call mb_make_call,mb_os_dir_delete,$(1)))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@clean,"Clean's the project build folders.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@clean)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@init: $(2)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@init)
|
|
|
|
|
$(3)@@init-deps:: $(2)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@init-deps)
|
|
|
|
|
$(3)@init: $(3)@@init $(3)@@init-deps
|
|
|
|
|
$(MB_@RECIPE)$$(if $$(wildcard $(1)),,$$(call mb_make_call,mb_os_echo_command,$$(MB_I18N_PROJ_DIR_CREATE) $(1)))
|
|
|
|
|
$(MB_@RECIPE)$$(if $$(wildcard $(1)),,$$(call mb_make_call,mb_os_dir_create,$(1)))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@init,"Create the project output folders.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@init)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@prepare: $(3)@init
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@prepare)
|
|
|
|
|
$(3)@@prepare-deps::
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@prepare-deps)
|
|
|
|
|
$(3)@prepare: $(3)@@prepare $(3)@@prepare-deps
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@prepare,"Prepare sources before processing.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@prepare)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@process: $(3)@prepare
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@process)
|
|
|
|
|
$(3)@@process-deps::
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@process-deps)
|
|
|
|
|
$(3)@process: $(3)@@process $(3)@@process-deps
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@process,"Process sources before compiling.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@process)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@compile: $(3)@process
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@compile)
|
|
|
|
|
$(3)@@compile-deps::
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@compile-deps)
|
|
|
|
|
$(3)@compile: $(3)@@compile $(3)@@compile-deps
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@compile,"Compiles all project sources.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@compile)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@link: $(3)@compile
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@link)
|
|
|
|
|
$(3)@@link-deps::
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@link-deps)
|
|
|
|
|
$(3)@link: $(3)@@link $(3)@@link-deps
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@link,"Link all project intermediate files.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@link)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@build: $(3)@link
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@build)
|
|
|
|
|
$(3)@@build-deps::
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@build-deps)
|
|
|
|
|
$(3)@build: $(3)@@build $(3)@@build-deps
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@build,"Build all project artifacts.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@build)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@test: $(3)@build
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@test)
|
|
|
|
|
$(3)@@test-deps::
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@test-deps)
|
|
|
|
|
$(3)@test: $(3)@@test $(3)@@test-deps
|
2024-07-14 22:31:46 +00:00
|
|
|
|
$(MB_@RECIPE)$$(if $(3),,$$(call mb_make_call,mb_os_echo_report,$$(MB_I18N_PROJ_ASSERT_COUNT) @test: $$(words $$(filter @test,$$(MB_PROJ_FIRE_ASSERT_SUCCESS)))))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@test,"Run all assertion tests.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@test)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@package: $(3)@test
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,v@@package)
|
|
|
|
|
$(3)@@package-deps::
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@package-deps)
|
|
|
|
|
$(3)@package: $(3)@@package $(3)@@package-deps
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@package,"Create all packages of project.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@package)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@package-qa: $(3)@package
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@package-qa)
|
|
|
|
|
$(3)@@package-qa-deps::
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@package-qa-deps)
|
|
|
|
|
$(3)@package-qa: $(3)@@package-qa $(3)@@package-qa-deps
|
2024-07-14 22:31:46 +00:00
|
|
|
|
$(MB_@RECIPE)$$(if $(3),,$$(call mb_make_call,mb_os_echo_report,$$(MB_I18N_PROJ_ASSERT_COUNT) @package-qa: $$(words $$(filter @package-qa,$$(MB_PROJ_FIRE_ASSERT_SUCCESS)))))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@package-qa,"Run all packages QA of project.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@package-qa)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@package-deploy: $(3)@package-qa
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@package-deploy)
|
|
|
|
|
$(3)@@package-deploy-deps::
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@package-deploy-deps)
|
|
|
|
|
$(3)@package-deploy: $(3)@@package-deploy $(3)@@package-deploy-deps
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@package-deploy,"Deploy all the packages.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@package-deploy)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(3)@@all: $(3)@package-qa
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_before)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@all)
|
|
|
|
|
$(3)@@all-deps::
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@@all-deps)
|
|
|
|
|
$(3)@all: $(3)@@all $(3)@@all-deps
|
2024-07-14 22:31:46 +00:00
|
|
|
|
$(MB_@RECIPE)$$(if $$(value MAKECMDGOALS),,$$(call mb_make_call,mb_os_echo_report,$$(MB_I18N_PROJ_OPENMSX_COUNT) $$(words $$(MB_OPENMSX_FIRE_PIPE_SMOKE))))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
2024-07-14 20:39:03 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target$$(if $(3),_module,_help),$(3)@all,"Run full build and package QA tests.")
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(3)@all)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPEPREFIX)
|
|
|
|
|
endef
|
|
|
|
|
define mb_flow_proj_setup
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_arg1,$(0),$(1))
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(call mb_make_call,mb_make_check_variable,MB_PROJ_META_GROUP_ID))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(call mb_make_call,mb_make_check_variable,MB_PROJ_META_ARTIFACT_ID))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(call mb_make_call,mb_make_check_variable,MB_PROJ_META_VERSION))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(call mb_make_call,mb_make_check_variable,MB_PROJ_META_NAME))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(call mb_make_call,mb_make_check_variable,MB_PROJ_META_DESCRIPTION))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(call mb_make_call,mb_make_check_variable,MB_PROJ_META_WEBSITE))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(filter $(if $(3),$(3)/@init,@init),$(MB_PROJ_FIRE_MODULE_INIT)),,$(eval $(call mb_make_call,__$(0),$(1),$(2),$(if $(3),$(3)/))))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(if $(MB_I18N),$(if $(filter off,$(MB_I18N)),,$(call mb_make_call,_$(0)_i18n))))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval MB_PROJ_FIRE_MODULE_INIT $(MB_MAKE_APPEND) $(if $(3),$(3)/@init,@init))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
endef
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_function_flow,mb_flow_proj_setup,"Inject flow of abstract project build cycle.","<bin-dir> [parent-glue] [bin-mod-dir]")
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define __mb_flow_proj_setup_i18n
|
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPE)
|
|
|
|
|
|
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_CLEAN): @clean
|
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_CLEAN),$$(MB_I18N_PROJ_PHASEDOC_CLEAN))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_CLEAN))
|
|
|
|
|
|
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_INIT): @init
|
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_INIT),$$(MB_I18N_PROJ_PHASEDOC_INIT))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_INIT))
|
|
|
|
|
|
2024-07-12 17:11:32 +00:00
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_PREPARE): @$$(MB_I18N_PROJ_PHASEID_INIT) @prepare
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_PREPARE),$$(MB_I18N_PROJ_PHASEDOC_PREPARE))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_PREPARE))
|
|
|
|
|
|
2024-07-12 17:11:32 +00:00
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_PROCESS): @$$(MB_I18N_PROJ_PHASEID_PREPARE) @process
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_PROCESS),$$(MB_I18N_PROJ_PHASEDOC_PROCESS))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_PROCESS))
|
|
|
|
|
|
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_COMPILE): @$$(MB_I18N_PROJ_PHASEID_PROCESS) @compile
|
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_COMPILE),$$(MB_I18N_PROJ_PHASEDOC_COMPILE))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_COMPILE))
|
|
|
|
|
|
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_LINK): @$$(MB_I18N_PROJ_PHASEID_COMPILE) @link
|
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_LINK),$$(MB_I18N_PROJ_PHASEDOC_LINK))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_LINK))
|
|
|
|
|
|
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_BUILD): @$$(MB_I18N_PROJ_PHASEID_LINK) @build
|
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_BUILD),$$(MB_I18N_PROJ_PHASEDOC_BUILD))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_BUILD))
|
|
|
|
|
|
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_TEST): @$$(MB_I18N_PROJ_PHASEID_BUILD) @test
|
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_TEST),$$(MB_I18N_PROJ_PHASEDOC_TEST))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_TEST))
|
|
|
|
|
|
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_PACKAGE): @$$(MB_I18N_PROJ_PHASEID_TEST) @package
|
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_PACKAGE),$$(MB_I18N_PROJ_PHASEDOC_PACKAGE))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_PACKAGE))
|
|
|
|
|
|
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_PACKAGE_QA): @$$(MB_I18N_PROJ_PHASEID_PACKAGE) @package-qa
|
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_PACKAGE_QA),$$(MB_I18N_PROJ_PHASEDOC_PACKAGE_QA))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_PACKAGE_QA))
|
|
|
|
|
|
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_PACKAGE_DEPLOY): @$$(MB_I18N_PROJ_PHASEID_PACKAGE_QA) @package-deploy
|
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_PACKAGE_DEPLOY),$$(MB_I18N_PROJ_PHASEDOC_PACKAGE_DEPLOY))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_PACKAGE_DEPLOY))
|
|
|
|
|
|
2024-07-12 16:37:44 +00:00
|
|
|
|
@$$(MB_I18N_PROJ_PHASEID_ALL): @$$(MB_I18N_PROJ_PHASEID_PACKAGE_QA) @all
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_help,@$$(MB_I18N_PROJ_PHASEID_ALL),$$(MB_I18N_PROJ_PHASEDOC_ALL))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,@$$(MB_I18N_PROJ_PHASEID_ALL))
|
|
|
|
|
|
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPEPREFIX)
|
|
|
|
|
endef
|
|
|
|
|
define _mb_flow_proj_setup_i18n
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_CLEAN)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_INIT)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_PREPARE)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_PROCESS)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_COMPILE)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_LINK)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_BUILD)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_TEST)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_PACKAGE)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_PACKAGE_QA)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_PACKAGE_DEPLOY)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_variable,MB_I18N_PROJ_PHASEID_ALL)
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval $(call mb_make_call,_$(0)))
|
|
|
|
|
endef
|
|
|
|
|
|
2024-07-14 01:46:29 +00:00
|
|
|
|
|
|
|
|
|
define __mb_flow_proj_module_run
|
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPE)
|
|
|
|
|
|
|
|
|
|
$(1)/@run: $(1)/@build
|
2024-07-14 12:33:46 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,mb_msxpipe_run_gui,$(1),,$(2))
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_run,$(1)/@run,"Run manually with gui.")
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(1)/@run)
|
|
|
|
|
|
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPEPREFIX)
|
|
|
|
|
endef
|
|
|
|
|
define mb_flow_proj_module_run
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_arg1,$(0),$(1))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(filter $(1)/@run,$(MB_PROJ_FIRE_MODULE_RUN)),,$(eval $(call mb_make_call,__$(0),$(1),$(2))))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval MB_PROJ_FIRE_MODULE_RUN +$(MB_MAKE_EQUALS) $(1)/@run)
|
|
|
|
|
endef
|
|
|
|
|
$(call mb_make_call,mb_doc_function_flow,mb_flow_proj_module_run,"Inject flow module @run.","<bin-dir> [machine]")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define __mb_flow_proj_prepare_packages
|
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPE)
|
|
|
|
|
|
|
|
|
|
$(1)/@@prepare-deps:: $(1)/@msxhub/$(2)
|
|
|
|
|
$(1)/@msxhub/$(2):
|
|
|
|
|
$(MB_@RECIPE)$$(if $$(wildcard $(1)$$(if $(3),/$(3))),,$$(call mb_make_call,mb_os_dir_create,$(1)$$(if $(3),/$(3))))
|
|
|
|
|
$(MB_@RECIPE)$$(call mb_make_call,mb_msxhub_get_$(2),$(1)$$(if $(3),/$(3)))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(1)/@msxhub/$(2))
|
|
|
|
|
|
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPEPREFIX)
|
|
|
|
|
endef
|
|
|
|
|
define mb_flow_proj_prepare_packages
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_arg2,$(0),$(1),$(2))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(foreach _pack,$(2),$(eval $(call mb_make_call,__$(0),$(1),$(_pack),$(3))))
|
|
|
|
|
endef
|
|
|
|
|
$(call mb_make_call,mb_doc_function_flow,mb_flow_proj_prepare_packages,"Inject package fetch flow for module.","<bin-dir> <packages> [dest-dir]")
|
|
|
|
|
|