From 29846780fea79033e33f4879a6e02d700139ab5f Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Thu, 19 Jul 2018 19:10:43 +0200 Subject: [PATCH 1/1] * Initial commit. --- .gitignore | 2 ++ Makefile | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile 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) -- 2.30.2