# HG changeset patch # User Oleksandr Gavenko # Date 1630483218 -10800 # Node ID 59b94ff177542c13c389261b9cdcfbc10d8ada76 # Parent f47557c2ba83dea8f4e10fefa200de33f66df390 Fixed: Anki decks were not included into .zip release. diff -r f47557c2ba83 -r 59b94ff17754 Makefile --- a/Makefile Wed Sep 01 10:47:27 2021 +0300 +++ b/Makefile Wed Sep 01 11:00:18 2021 +0300 @@ -423,11 +423,13 @@ DISTREL_SRS_TAB_FILES := $(patsubst %,dist/$(fullpkgname)/srs/%,$(notdir $(SRS_TAB_FILES))) DISTREL_SRS_ANKI_FILES := $(patsubst %,dist/$(fullpkgname)/anki/%,$(notdir $(SRS_ANKI_FILES))) -dist/$(fullpkgname).tar.gz: $(DISTREL_DICTDZ_FILES) $(DISTREL_INDEX_FILES) $(DISTREL_SRS_ANKI_FILES) $(DISTREL_RST_FILES) $(DISTREL_WWW_HTML_FILES) $(BUILD_SCRIPTS) +DISTREL_DEP := $(DISTREL_DICTDZ_FILES) $(DISTREL_INDEX_FILES) $(DISTREL_SRS_ANKI_FILES) $(DISTREL_RST_FILES) $(DISTREL_WWW_HTML_FILES) $(BUILD_SCRIPTS) + +dist/$(fullpkgname).tar.gz: $(DISTREL_DEP) rm -rf $@ tar zcf $@ -C dist/ $(fullpkgname) -dist/$(fullpkgname).zip: $(DISTREL_DICTDZ_FILES) $(DISTREL_INDEX_FILES) $(DISTREL_RST_FILES) $(DISTREL_WWW_HTML_FILES) $(BUILD_SCRIPTS) +dist/$(fullpkgname).zip: $(DISTREL_DEP) rm -rf $@ cd $(dir $@) && zip -r $(notdir $@) $(fullpkgname)