Makefile
changeset 1142 ce538f6b30b1
parent 1075 a8fad275310b
child 1146 50007cd95972
equal deleted inserted replaced
1141:879c410290ea 1142:ce538f6b30b1
   169 LOGO_FILE := www/logo.svg
   169 LOGO_FILE := www/logo.svg
   170 LOGO_DIM := 32x32 48x48 64x64
   170 LOGO_DIM := 32x32 48x48 64x64
   171 LOGO_PNG_FILES := $(patsubst %,dist/misc/logo-%.png,$(LOGO_DIM))
   171 LOGO_PNG_FILES := $(patsubst %,dist/misc/logo-%.png,$(LOGO_DIM))
   172 FAVICON := dist/www/favicon.ico
   172 FAVICON := dist/www/favicon.ico
   173 
   173 
       
   174 EL_FILES := $(wildcard contrib/*.el)
       
   175 
   174 DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip
   176 DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip
   175 DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip
   177 DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip
   176 
   178 
   177 ################################################################
   179 ################################################################
   178 # Install/uninstall targets.
   180 # Install/uninstall targets.
   189 
   191 
   190 .PHONY: install-emacs install-el
   192 .PHONY: install-emacs install-el
   191 install-el: install-emacs
   193 install-el: install-emacs
   192 install-emacs:
   194 install-emacs:
   193 	mkdir -p $(elispdir)
   195 	mkdir -p $(elispdir)
   194 	$(INSTALL_DATA) contrib/gadict.el $(elispdir)
   196 	$(INSTALL_DATA) $(EL_FILES) $(elispdir)
   195 	emacs -batch -f batch-byte-compile $(elispdir)/gadict.el
   197 	emacs -batch -f batch-byte-compile $(patsubst %,$(elispdir)/%,$(notdir $(EL_FILES)))
   196 
   198 
   197 OLD_DICT_FILES := gadict-abbr.dict-c5 gadict-adjective-en-ru.dict-c5    \
   199 OLD_DICT_FILES := gadict-abbr.dict-c5 gadict-adjective-en-ru.dict-c5    \
   198 gadict-adverb-en-ru.dict-c5 gadict-conjunction-en-ru.dict-c5            \
   200 gadict-adverb-en-ru.dict-c5 gadict-conjunction-en-ru.dict-c5            \
   199 gadict-en-ru.dict-c5 gadict-irregular-verbs-en-ru.dict-c5               \
   201 gadict-en-ru.dict-c5 gadict-irregular-verbs-en-ru.dict-c5               \
   200 gadict-numeral-en-ru.dict-c5 gadict-phrasal-verbs-en-ru.dict-c5         \
   202 gadict-numeral-en-ru.dict-c5 gadict-phrasal-verbs-en-ru.dict-c5         \
   210 		rm -f $(datadir)/$$f; \
   212 		rm -f $(datadir)/$$f; \
   211 	done
   213 	done
   212 	for f in $(OLD_DICTDZ_FILES) $(OLD_INDEX_FILES); do \
   214 	for f in $(OLD_DICTDZ_FILES) $(OLD_INDEX_FILES); do \
   213 		rm -f $(datadir)/$$f; \
   215 		rm -f $(datadir)/$$f; \
   214 	done
   216 	done
   215 	rm -f $(elispdir)/gadict.el $(elispdir)/gadict.elc
   217 	rm -f $(patsubst %,$(elispdir)/%,$(notdir $(EL_FILES))) $(patsubst %.el,$(elispdir)/%.elc,$(notdir $(EL_FILES)))
   216 
   218 
   217 ################################################################
   219 ################################################################
   218 # Deploy/release targets.
   220 # Deploy/release targets.
   219 
   221 
   220 .PHONY: deploy
   222 .PHONY: deploy