msxbuild/test/dist/0module.mk

26 lines
877 B
Makefile
Raw Normal View History

TEST_DIST_NAME := dist
TEST_DIST_SRC := test/$(TEST_DIST_NAME)
TEST_DIST_BIN := $(PATH_BIN)/test/$(TEST_DIST_NAME)
TEST_DIST_OUT := $(PATH_BIN)/test/$(TEST_DIST_NAME).tar.gz
2024-06-26 01:21:06 +00:00
TEST_DIST_DEPS := $(TEST_DIST_BIN)/readme.txt $(TEST_DIST_BIN)/ahello1.com $(TEST_DIST_BIN)/ahello2.com
BUILD_HELP += \\n\\t* $(TEST_DIST_OUT)\\n\\t* test-dist-prepare
$(TEST_DIST_BIN):
$(call mb_mkdir,$(TEST_DIST_BIN))
$(TEST_DIST_BIN)/readme.txt: $(TEST_DIST_SRC)/readme.txt | $(TEST_DIST_BIN)
2024-06-26 01:21:06 +00:00
$(call mb_unix2dos,$<,$@)
$(TEST_DIST_BIN)/ahello1.com: bin/test/ahello-m80/ahello.com | $(TEST_DIST_BIN)
$(call mb_copy,$<,$@)
$(TEST_DIST_BIN)/ahello2.com: bin/test/ahello-sdcc/ahello.com | $(TEST_DIST_BIN)
$(call mb_copy,$<,$@)
2024-06-26 01:21:06 +00:00
.PHONY: test-dist-prepare
test-dist-prepare: | $(TEST_DIST_DEPS)
$(TEST_DIST_OUT): | test-dist-prepare
$(call mb_create_dist,$(TEST_DIST_OUT),$(TEST_DIST_BIN))