msxbuild/lib/make/msxbuild.mk
Willem Cazander ded142d36e
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -6s
Fixed autoexec boot and found bug in make in splitting folders.
2024-07-10 17:03:28 +02:00

45 lines
2 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# msxbuild.mk - Makefile helper to use with msx projects.
#
MB__         :=
MB__     :=
MB__RECIPE := ]
MB__RECIPEPREFIX := $(.RECIPEPREFIX)
MB__BASEPATH := $(dir $(lastword $(MAKEFILE_LIST)))../..
MB__BASEPATH_REAL := $(if $(realpath $(MB__BASEPATH)),$(realpath $(MB__BASEPATH)),$(MB__BASEPATH))
# BUG1 Unicode bug in make, read+parse ok but function call fails.
#include $(MB__BASEPATH)/lib/make/प्रणालीᐥᔆʸᔆᐪᓫᔿ/mb_doc.mk
include $(MB__BASEPATH)/lib/make//mb_doc.mk
include $(MB__BASEPATH)/lib/make//mb_make_call.mk
include $(MB__BASEPATH)/lib/make//mb_make_xml.mk
include $(MB__BASEPATH)/lib/make//mb_make.mk
include $(MB__BASEPATH)/lib/make//mb_os.mk
include $(MB__BASEPATH)/lib/make//mb_conv.mk
include $(MB__BASEPATH)/lib/make//mb_sdcc.mk
include $(MB__BASEPATH)/lib/make//mb_msxrom.mk
include $(MB__BASEPATH)/lib/make//mb_msxhub.mk
include $(MB__BASEPATH)/lib/make//mb_msxpipe.mk
include $(MB__BASEPATH)/lib/make//mb_openmsx.mk
include $(MB__BASEPATH)/lib/make//mb_autoexec.mk
include $(MB__BASEPATH)/lib/make/mb_flight.mk
include $(MB__BASEPATH)/lib/make/mb_assert.mk
include $(MB__BASEPATH)/lib/make/mb_tool.mk
include $(MB__BASEPATH)/lib/make/mb_proj.mk
include $(MB__BASEPATH)/lib/make/mb_i18n.mk
$(call mb_make_call,mb_doc_variable_rock,MB__RECIPEPREFIX,"Recipe prefix to restore to after flow eval.")
$(call mb_make_call,mb_doc_variable_rock,MB__BASEPATH,"Path where msxbuild lib folder is located.")
$(call mb_make_call,mb_doc_variable_rock,MB__BASEPATH_REAL,"Resolved real path of msxbuild.")
# TODO: move to mb_package.mk
define mb_create_dist
$(MB__    )$(call mb_make_call,mb_os_echo_command,Creating distribution archive $(2))
$(MB__    )tar -czf $(2) -C $(1) `ls $(1)`
endef
$(call mb_make_call,mb_doc_function,mb_create_dist,"Create an distribution archive.","<dir> <artifact>")