diff --git a/data/Makefile b/data/Makefile index 854cf08..0e38dac 100644 --- a/data/Makefile +++ b/data/Makefile @@ -1,12 +1,8 @@ default: - @printf '%s\n' '>> Usage:' ' make import JMDICT_PATH=/path/to/jmdict' ' make export' '>> Refer to README.md for details.' + @printf '%s\n' '>> Usage:' ' make import' ' make export' '>> Refer to README.md for details.' import: -ifeq ($(origin JMDICT_PATH),undefined) - @echo "ERROR: Run as \`make import JMDICT_PATH=/path/to/JMdict\`". - @false -endif - go run preprocess-jmdict.go $(JMDICT_PATH) + go run preprocess-jmdict.go JMdict*.xml EXPORT_FILENAME ?= entrypack-v1-$(shell cat entrypack.json | grep -o 'Creation Date: [0-9-]*' | awk '{print$$3}').json.gz