equal
deleted
inserted
replaced
120 else |
120 else |
121 prefix = $(HOME)/usr |
121 prefix = $(HOME)/usr |
122 endif |
122 endif |
123 endif |
123 endif |
124 datarootdir := $(prefix)/share |
124 datarootdir := $(prefix)/share |
125 datadir = $(datarootdir)/dictd |
125 datadir := $(datarootdir)/dictd |
|
126 elispdir := $(datarootdir)/emacs/site-lisp |
126 |
127 |
127 ################################################################ |
128 ################################################################ |
128 # Project dirs/files. |
129 # Project dirs/files. |
129 |
130 |
130 pkgname = gadict |
131 pkgname = gadict |
329 ################################################################ |
330 ################################################################ |
330 # Install/uninstall targets. |
331 # Install/uninstall targets. |
331 |
332 |
332 .PHONY: install |
333 .PHONY: install |
333 install: $(DICTDZ_FILES) $(INDEX_FILES) |
334 install: $(DICTDZ_FILES) $(INDEX_FILES) |
334 mkdir -p $(datadir) |
335 mkdir -p $(datadir) $(elispdir) |
335 for f in $(DICTDZ_FILES) $(INDEX_FILES); do \ |
336 for f in $(DICTDZ_FILES) $(INDEX_FILES); do \ |
336 $(INSTALL_DATA) $$f $(datadir); \ |
337 $(INSTALL_DATA) $$f $(datadir); \ |
337 done |
338 done |
|
339 $(INSTALL_DATA) contrib/gadict.el $(elispdir) |
|
340 emacs -batch -f batch-byte-compile $(elispdir)/gadict.el |
338 |
341 |
339 OLD_DICT_FILES := gadict-abbr.dict-c5 gadict-adjective-en-ru.dict-c5 \ |
342 OLD_DICT_FILES := gadict-abbr.dict-c5 gadict-adjective-en-ru.dict-c5 \ |
340 gadict-adverb-en-ru.dict-c5 gadict-conjunction-en-ru.dict-c5 \ |
343 gadict-adverb-en-ru.dict-c5 gadict-conjunction-en-ru.dict-c5 \ |
341 gadict-en-ru.dict-c5 gadict-irregular-verbs-en-ru.dict-c5 \ |
344 gadict-en-ru.dict-c5 gadict-irregular-verbs-en-ru.dict-c5 \ |
342 gadict-numeral-en-ru.dict-c5 gadict-phrasal-verbs-en-ru.dict-c5 \ |
345 gadict-numeral-en-ru.dict-c5 gadict-phrasal-verbs-en-ru.dict-c5 \ |
352 rm -f $(datadir)/$$f; \ |
355 rm -f $(datadir)/$$f; \ |
353 done |
356 done |
354 for f in $(OLD_DICTDZ_FILES) $(OLD_INDEX_FILES); do \ |
357 for f in $(OLD_DICTDZ_FILES) $(OLD_INDEX_FILES); do \ |
355 rm -f $(datadir)/$$f; \ |
358 rm -f $(datadir)/$$f; \ |
356 done |
359 done |
|
360 rm -f $(elispdir)/gadict.el $(elispdir)/gadict.elc |
357 |
361 |
358 ################################################################ |
362 ################################################################ |
359 # Documentation targets. |
363 # Documentation targets. |
360 |
364 |
361 .PHONY: docs |
365 .PHONY: docs |