blob: fdbca6c9d3f866c5ca9d068c57d40811d1bfdf07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CURL = curl
UNZIP = unzip
.PHONY: clean all
all: jmdict.dict.sql
jmdict.zip:
$(CURL) -Ls 'https://github.com/scriptin/jmdict-simplified/releases/download/3.5.0%2B20230619121907/jmdict-all-3.5.0+20230619121907.json.zip' > $@
jmdict.json: jmdict.zip
$(UNZIP) -p $< > $@
jmdict.dict.sql: jmdict.json jmdict.ts
deno run -A --unstable ./jmdict.ts < $< > $@
clean:
$(RM) jmdict.dict.sql jmdict.sql jmdict.json jmdict.zip
|