Makefile
changeset 1322 59b94ff17754
parent 1316 870abedea142
child 1327 d2c3b60decaf
--- 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)