msxbuild/lib/make/msxbuild.mk
Willem Cazander a16516d934
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -6s
WIP Tab removal, new debug mode, clean proj deps + add i18n commands.
2024-07-10 14:05:38 +02:00

41 lines
1.7 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.

#
# 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))
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_conv.mk
include $(MB__BASEPATH)/lib/make/mb_sdcc.mk
include $(MB__BASEPATH)/lib/make/mb_flight.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_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
include $(MB__BASEPATH)/lib/make/mb_os.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>")