From: Urban Wallasch Date: Thu, 19 Jul 2018 17:10:43 +0000 (+0200) Subject: * Initial commit. X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=29846780fea79033e33f4879a6e02d700139ab5f;p=gjedict.git * Initial commit. --- 29846780fea79033e33f4879a6e02d700139ab5f diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b375c8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +!.git* +!Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..81cb4ec --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +# NOTE: In 2008 compdic was merged with the main EDICT file! +#TARGETS = edict enamdict kanjidic compdic + +TARGETS = edict enamdict kanjidic +URL = http://ftp.monash.edu.au/pub/nihongo +INSTDIR = /usr/share/gjiten/dics + +.PRECIOUS: %.gz + +.PHONY: all clean distclean install + +all: $(TARGETS) + +%: %.gz + zcat $^ | recode EUC-JP..UTF-8 > $@ + +%.gz: + wget $(URL)/$@ + +clean: + -rm -fv $(TARGETS) + +distclean: clean + -rm -fv *.gz + +install: $(TARGETS) + mkdir -pv $(INSTDIR) + cp -fv $^ $(INSTDIR)