# HG changeset patch # User Oleksandr Gavenko # Date 1458771257 -7200 # Node ID 3af39c0b52299af3706a3f905c1c1c5acf608cb1 # Parent 9372e3b5b47e3de77b6410939b4c30cf1409b2d8 A way to uninstall old C5 dictionaries. diff -r 9372e3b5b47e -r 3af39c0b5229 Makefile --- a/Makefile Wed Mar 23 23:45:30 2016 +0200 +++ b/Makefile Thu Mar 24 00:14:17 2016 +0200 @@ -333,11 +333,24 @@ $(INSTALL_DATA) $$f $(datadir); \ done +OLD_DICT_FILES := gadict-abbr.dict-c5 gadict-adjective-en-ru.dict-c5 \ +gadict-adverb-en-ru.dict-c5 gadict-conjunction-en-ru.dict-c5 \ +gadict-en-ru.dict-c5 gadict-irregular-verbs-en-ru.dict-c5 \ +gadict-numeral-en-ru.dict-c5 gadict-phrasal-verbs-en-ru.dict-c5 \ +gadict-preposition-en-ru.dict-c5 gadict-pronoun-en-ru.dict-c5 \ +gadict-regular-verbs-en-ru.dict-c5 + +OLD_DICTDZ_FILES := $(OLD_DICT_FILES:.dict-c5=.dict.dz) +OLD_INDEX_FILES := $(OLD_DICT_FILES:.dict-c5=.index) + .PHONY: uninstall uninstall: for f in $(DICTDZ_FILES) $(INDEX_FILES); do \ rm -f $(datadir)/$$f; \ done + for f in $(OLD_DICTDZ_FILES) $(OLD_INDEX_FILES); do \ + rm -f $(datadir)/$$f; \ + done ################################################################ # Documentation targets.