Split Emacs mode installation from dictionary files installation.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 31 Jan 2017 23:23:08 +0200
changeset 754 2c32c47e83a9
parent 753 187ce9d3f236
child 755 667c34b73e2c
Split Emacs mode installation from dictionary files installation.
Makefile
--- 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