msxbuild/test/dist/0module.mk
Willem Cazander 54f8016ead
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 0s
Used proper make for qa copy.
2024-06-26 03:21:06 +02:00

26 lines
877 B
Makefile

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
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)
$(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,$<,$@)
.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))