CURL = curl UNZIP = unzip 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 < $< > $@