Makefile: Only include help[ file for target

When distributing a release, only include the relevant help file,
i.e. DB48X.md for DB48X and DB50X.md for DB50x.

Fixes: #1124

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
Christophe de Dinechin 2024-08-23 13:46:20 +02:00
parent 1ee54c9662
commit 8a4559e3ac

View file

@ -150,8 +150,13 @@ $(TTF2FONT): $(TTF2FONT).cpp $(TOOLS)/ttf2font/Makefile src/ids.tbl
dist: all
cp $(BUILD)/$(TARGET)_qspi.bin .
tar cvfz $(TARGET)-v$(VERSION).tgz $(TARGET).$(PGM) $(TARGET)_qspi.bin \
help/*.md help/*.bmp help/*/*.bmp state/*.48S config/*.csv
tar cvfz $(TARGET)-v$(VERSION).tgz \
$(TARGET).$(PGM) \
$(TARGET)_qspi.bin \
help/$(TARGET).md \
help/*.bmp help/*/*.bmp \
state/*.48[sSbB] \
config/*.csv
@echo "# Distributing $(VERSION)"
$(VERSION_H): $(BUILD)/version-$(VERSION).h