Willem Cazander
66693d9cbc
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -11s
42 lines
1.9 KiB
Makefile
42 lines
1.9 KiB
Makefile
|
||
define __mb_flow_clone_deps
|
||
.RECIPEPREFIX := $(MB_@RECIPE)
|
||
|
||
$(1)/@clean: @@clean
|
||
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_run_clean,$(1))
|
||
$(MB_@RECIPE)$$(call mb_make_call,_mb_proj_flow_step_done)
|
||
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_deep,$(1)/@clean)
|
||
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(1)/@clean)
|
||
|
||
$(1): | @init
|
||
$(MB_@RECIPE)$$(if $$(wildcard $(1)),,$$(call mb_make_call,mb_os_dir_create,$(1)))
|
||
$(MB_@RECIPE)$$(if $(6),$$(call mb_make_call,mb_msxhub_get_$(6)_boot,$(1)))
|
||
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_deep,$(1))
|
||
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(1))
|
||
|
||
$(1)/@prepare: $(3) | $(1)
|
||
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_deep,$(1)/@prepare)
|
||
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(1)/@prepare)
|
||
|
||
$(1)/%: $(2)/% $(1)/@prepare
|
||
$(MB_@RECIPE)$$(call mb_make_call,mb_os_file_copy,$$<,$$@)
|
||
|
||
$(1)/@build: $(4)
|
||
$(MB_@RECIPE)$$(call mb_make_call,mb_os_echo_remark,$(MB_I18N_FLOW_CLONE_REPORT) $$(words $$^))
|
||
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target,$(1)/@build,"Builds the $(1) module.")
|
||
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(1)/@build)
|
||
|
||
$(1)/@run: $(1)/@build
|
||
$(MB_@RECIPE)$$(call mb_make_call,mb_msxpipe_run_gui,$(1),,$(5))
|
||
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_doc_target_run,$(1)/@run,"Run $(3).com manually with gui.")
|
||
$(MB_ᕽᕽᕽ )$$(call mb_make_call,mb_make_target_phony,$(1)/@run)
|
||
|
||
.RECIPEPREFIX := $(MB_@RECIPEPREFIX)
|
||
endef
|
||
define mb_flow_clone_deps
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_make_check_arg3,$(0),$(1),$(2),$(3))
|
||
$(MB_ᕽᕽᕽ )$(eval $(call mb_make_call,__$(0),$(1),$(2),$(3),$(call mb_make_call,mb_proj_module_local_deps,$(1),$(3)),$(4),$(5)))
|
||
endef
|
||
$(call mb_make_call,mb_doc_function_flow,mb_flow_clone_deps,"Inject flow of file copy toolchain module.","<bin-to> <bin-from> <deps> [machine] [os-version]")
|
||
|