--- a/Makefile Sun Oct 25 01:26:08 2020 +0300
+++ b/Makefile Sun Oct 25 01:35:31 2020 +0300
@@ -181,8 +181,8 @@
EL_FILES := $(wildcard misc/*.el)
-DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip
-DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip
+DISTREL_TARBALLS = dist/$(fullpkgname).zip # dist/$(fullpkgname).tar.gz
+DISTSRC_TARBALLS = dist/$(fullpkgname)_src.zip # dist/$(fullpkgname)_src.tar.gz
################################################################
# Install/uninstall targets.
@@ -447,6 +447,11 @@
rm -rf $@
tar zcf $@ -C dist/ $(fullpkgname)_src
+dist/$(fullpkgname)_src.zip: $(DISTSRC_GADICT_FILES) $(DISTSRC_GAPHRASE_FILES) $(DISTSRC_GADIALOG_FILES) \
+ $(DISTSRC_PY_FILES) $(DISTSRC_RST_FILES) $(DISTSRC_TMPL_FILES) $(DISTSRC_BUILD_SCRIPTS) $(BUILD_SCRIPTS)
+ rm -rf $@
+ cd $(dir $@) && zip -r $(notdir $@) $(fullpkgname)_src
+
$(DISTSRC_GADICT_FILES) $(DISTSRC_GAPHRASE_FILES) $(DISTSRC_GADIALOG_FILES): dist/$(fullpkgname)_src/%: % | dist/$(fullpkgname)_src/
cp $< $@