2024-06-30 00:42:42 +00:00
|
|
|
|
|
|
|
DIST_MOD := dist
|
2024-06-30 02:07:10 +00:00
|
|
|
DIST_SRC := $(PATH_SRC)/$(DIST_MOD)
|
2024-06-30 00:42:42 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
$(DIST_BIN):
|
|
|
|
$(call mb_mkdir,$(DIST_BIN))
|
2024-06-30 03:06:56 +00:00
|
|
|
|
2024-06-30 00:42:42 +00:00
|
|
|
$(DIST_BIN)/readme.txt: $(DIST_SRC)/readme.txt | $(DIST_BIN)
|
|
|
|
$(call mb_unix2dos,$<,$@)
|
2024-06-30 03:06:56 +00:00
|
|
|
|
2024-06-30 00:42:42 +00:00
|
|
|
$(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,$<,$@)
|
|
|
|
|
2024-06-30 03:05:20 +00:00
|
|
|
BUILD_HELP += \\n\\t* $(DIST_BIN)/@prepare
|
2024-06-30 02:07:10 +00:00
|
|
|
.PHONY: $(DIST_BIN)/@prepare
|
|
|
|
$(DIST_BIN)/@prepare: | $(DIST_DEPS)
|
2024-06-30 00:42:42 +00:00
|
|
|
|
2024-06-30 03:05:20 +00:00
|
|
|
BUILD_HELP += \\n\\t* $(DIST_OUT)
|
2024-06-30 02:07:10 +00:00
|
|
|
$(DIST_OUT): | $(DIST_BIN)/@prepare
|
2024-06-30 02:37:21 +00:00
|
|
|
$(call mb_create_dist,$(DIST_BIN),$@)
|