Makefile
changeset 754 2c32c47e83a9
parent 724 98fd211d27db
child 768 bd3278653eaa
equal deleted inserted replaced
753:187ce9d3f236 754:2c32c47e83a9
   169 
   169 
   170 ################################################################
   170 ################################################################
   171 # Install/uninstall targets.
   171 # Install/uninstall targets.
   172 
   172 
   173 .PHONY: install
   173 .PHONY: install
   174 install: $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES)
   174 install: install-dict install-emacs
   175 	mkdir -p $(datadir) $(elispdir)
   175 
       
   176 .PHONY: install-dict
       
   177 install-dict: $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES)
       
   178 	mkdir -p $(datadir)
   176 	for f in $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES); do \
   179 	for f in $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES); do \
   177 		$(INSTALL_DATA) $$f $(datadir); \
   180 		$(INSTALL_DATA) $$f $(datadir); \
   178 	done
   181 	done
       
   182 
       
   183 .PHONY: install-emacs
       
   184 install-emacs:
       
   185 	mkdir -p $(elispdir)
   179 	$(INSTALL_DATA) contrib/gadict.el $(elispdir)
   186 	$(INSTALL_DATA) contrib/gadict.el $(elispdir)
   180 	emacs -batch -f batch-byte-compile $(elispdir)/gadict.el
   187 	emacs -batch -f batch-byte-compile $(elispdir)/gadict.el
   181 
   188 
   182 OLD_DICT_FILES := gadict-abbr.dict-c5 gadict-adjective-en-ru.dict-c5 \
   189 OLD_DICT_FILES := gadict-abbr.dict-c5 gadict-adjective-en-ru.dict-c5 \
   183 gadict-adverb-en-ru.dict-c5 gadict-conjunction-en-ru.dict-c5            \
   190 gadict-adverb-en-ru.dict-c5 gadict-conjunction-en-ru.dict-c5            \