diff -r 879c410290ea -r ce538f6b30b1 Makefile --- a/Makefile Sat Apr 20 02:28:22 2019 +0300 +++ b/Makefile Sat Apr 20 02:36:42 2019 +0300 @@ -171,6 +171,8 @@ LOGO_PNG_FILES := $(patsubst %,dist/misc/logo-%.png,$(LOGO_DIM)) FAVICON := dist/www/favicon.ico +EL_FILES := $(wildcard contrib/*.el) + DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip @@ -191,8 +193,8 @@ install-el: install-emacs install-emacs: mkdir -p $(elispdir) - $(INSTALL_DATA) contrib/gadict.el $(elispdir) - emacs -batch -f batch-byte-compile $(elispdir)/gadict.el + $(INSTALL_DATA) $(EL_FILES) $(elispdir) + emacs -batch -f batch-byte-compile $(patsubst %,$(elispdir)/%,$(notdir $(EL_FILES))) OLD_DICT_FILES := gadict-abbr.dict-c5 gadict-adjective-en-ru.dict-c5 \ gadict-adverb-en-ru.dict-c5 gadict-conjunction-en-ru.dict-c5 \ @@ -212,7 +214,7 @@ for f in $(OLD_DICTDZ_FILES) $(OLD_INDEX_FILES); do \ rm -f $(datadir)/$$f; \ done - rm -f $(elispdir)/gadict.el $(elispdir)/gadict.elc + rm -f $(patsubst %,$(elispdir)/%,$(notdir $(EL_FILES))) $(patsubst %.el,$(elispdir)/%.elc,$(notdir $(EL_FILES))) ################################################################ # Deploy/release targets.