Makefile
changeset 633 f622dfd21f2c
parent 632 21c366ba2c6d
child 643 c2c32f45dde6
equal deleted inserted replaced
632:21c366ba2c6d 633:f622dfd21f2c
   166 
   166 
   167 DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip
   167 DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip
   168 DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip
   168 DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip
   169 
   169 
   170 ################################################################
   170 ################################################################
       
   171 # Install/uninstall targets.
       
   172 
       
   173 .PHONY: install
       
   174 install: $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES)
       
   175 	mkdir -p $(datadir) $(elispdir)
       
   176 	for f in $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES); do \
       
   177 		$(INSTALL_DATA) $$f $(datadir); \
       
   178 	done
       
   179 	$(INSTALL_DATA) contrib/gadict.el $(elispdir)
       
   180 	emacs -batch -f batch-byte-compile $(elispdir)/gadict.el
       
   181 
       
   182 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            \
       
   184 gadict-en-ru.dict-c5 gadict-irregular-verbs-en-ru.dict-c5               \
       
   185 gadict-numeral-en-ru.dict-c5 gadict-phrasal-verbs-en-ru.dict-c5         \
       
   186 gadict-preposition-en-ru.dict-c5 gadict-pronoun-en-ru.dict-c5           \
       
   187 gadict-regular-verbs-en-ru.dict-c5
       
   188 
       
   189 OLD_DICTDZ_FILES := $(OLD_DICT_FILES:.dict-c5=.dict.dz)
       
   190 OLD_INDEX_FILES := $(OLD_DICT_FILES:.dict-c5=.index)
       
   191 
       
   192 .PHONY: uninstall
       
   193 uninstall:
       
   194 	for f in $(DICTDZ_FILES) $(INDEX_FILES); do \
       
   195 		rm -f $(datadir)/$$f; \
       
   196 	done
       
   197 	for f in $(OLD_DICTDZ_FILES) $(OLD_INDEX_FILES); do \
       
   198 		rm -f $(datadir)/$$f; \
       
   199 	done
       
   200 	rm -f $(elispdir)/gadict.el $(elispdir)/gadict.elc
       
   201 
       
   202 ################################################################
   171 # Deploy/release targets.
   203 # Deploy/release targets.
   172 
   204 
   173 .PHONY: deploy
   205 .PHONY: deploy
   174 deploy: deploy2defun deploy2sf
   206 deploy: deploy2defun deploy2sf
   175 
   207 
   429 
   461 
   430 dist/srs/:
   462 dist/srs/:
   431 	mkdir -p $@
   463 	mkdir -p $@
   432 
   464 
   433 ################################################################
   465 ################################################################
   434 # Install/uninstall targets.
       
   435 
       
   436 .PHONY: install
       
   437 install: $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES)
       
   438 	mkdir -p $(datadir) $(elispdir)
       
   439 	for f in $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES); do \
       
   440 		$(INSTALL_DATA) $$f $(datadir); \
       
   441 	done
       
   442 	$(INSTALL_DATA) contrib/gadict.el $(elispdir)
       
   443 	emacs -batch -f batch-byte-compile $(elispdir)/gadict.el
       
   444 
       
   445 OLD_DICT_FILES := gadict-abbr.dict-c5 gadict-adjective-en-ru.dict-c5 \
       
   446 gadict-adverb-en-ru.dict-c5 gadict-conjunction-en-ru.dict-c5            \
       
   447 gadict-en-ru.dict-c5 gadict-irregular-verbs-en-ru.dict-c5               \
       
   448 gadict-numeral-en-ru.dict-c5 gadict-phrasal-verbs-en-ru.dict-c5         \
       
   449 gadict-preposition-en-ru.dict-c5 gadict-pronoun-en-ru.dict-c5           \
       
   450 gadict-regular-verbs-en-ru.dict-c5
       
   451 
       
   452 OLD_DICTDZ_FILES := $(OLD_DICT_FILES:.dict-c5=.dict.dz)
       
   453 OLD_INDEX_FILES := $(OLD_DICT_FILES:.dict-c5=.index)
       
   454 
       
   455 .PHONY: uninstall
       
   456 uninstall:
       
   457 	for f in $(DICTDZ_FILES) $(INDEX_FILES); do \
       
   458 		rm -f $(datadir)/$$f; \
       
   459 	done
       
   460 	for f in $(OLD_DICTDZ_FILES) $(OLD_INDEX_FILES); do \
       
   461 		rm -f $(datadir)/$$f; \
       
   462 	done
       
   463 	rm -f $(elispdir)/gadict.el $(elispdir)/gadict.elc
       
   464 
       
   465 ################################################################
       
   466 # Documentation targets.
   466 # Documentation targets.
   467 
   467 
   468 .PHONY: docs
   468 .PHONY: docs
   469 docs: html
   469 docs: html
   470 
   470