Split Emacs mode installation from dictionary files installation.
--- a/Makefile Mon Jan 30 22:54:56 2017 +0200
+++ b/Makefile Tue Jan 31 23:23:08 2017 +0200
@@ -171,11 +171,18 @@
# Install/uninstall targets.
.PHONY: install
-install: $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES)
- mkdir -p $(datadir) $(elispdir)
+install: install-dict install-emacs
+
+.PHONY: install-dict
+install-dict: $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES)
+ mkdir -p $(datadir)
for f in $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES); do \
$(INSTALL_DATA) $$f $(datadir); \
done
+
+.PHONY: install-emacs
+install-emacs:
+ mkdir -p $(elispdir)
$(INSTALL_DATA) contrib/gadict.el $(elispdir)
emacs -batch -f batch-byte-compile $(elispdir)/gadict.el