* Initial commit.
authorUrban Wallasch <urban.wallasch@freenet.de>
Thu, 19 Jul 2018 17:10:43 +0000 (19:10 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Thu, 19 Jul 2018 17:10:43 +0000 (19:10 +0200)
.gitignore [new file with mode: 0644]
Makefile [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..0b375c8
--- /dev/null
@@ -0,0 +1,2 @@
+!.git*
+!Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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)