Willem Cazander
ded142d36e
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -6s
45 lines
2 KiB
Makefile
45 lines
2 KiB
Makefile
#
|
||
# 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>")
|
||
|