msxbuild/src/dist/0module.mk
Willem Cazander 6f677b6c43
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -9s
Moved asserts to remove copy of mofified files after assert.
2024-06-30 04:07:10 +02:00

26 lines
745 B
Makefile

DIST_MOD := dist
DIST_SRC := $(PATH_SRC)/$(DIST_MOD)
DIST_BIN := $(PATH_BIN)/$(DIST_MOD)
DIST_OUT := $(PATH_BIN)/$(DIST_MOD).tar.gz
DIST_DEPS := $(DIST_BIN)/readme.txt $(DIST_BIN)/ahello1.com $(DIST_BIN)/ahello2.com
BUILD_HELP += \\n\\t* $(DIST_BIN)/@prepare\\n\\t* $(DIST_OUT)
$(DIST_BIN):
$(call mb_mkdir,$(DIST_BIN))
$(DIST_BIN)/readme.txt: $(DIST_SRC)/readme.txt | $(DIST_BIN)
$(call mb_unix2dos,$<,$@)
$(DIST_BIN)/ahello1.com: bin/ahello-m80/ahello.com | $(DIST_BIN)
$(call mb_copy,$<,$@)
$(DIST_BIN)/ahello2.com: bin/ahello-sdcc/ahello.com | $(DIST_BIN)
$(call mb_copy,$<,$@)
.PHONY: $(DIST_BIN)/@prepare
$(DIST_BIN)/@prepare: | $(DIST_DEPS)
$(DIST_OUT): | $(DIST_BIN)/@prepare
$(call mb_create_dist,$(DIST_OUT),$(DIST_BIN))