Remove make import parameter

main
Elnu 1 year ago
parent 1792926dfd
commit 9a8bd1b541

@ -1,12 +1,8 @@
default: 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: import:
ifeq ($(origin JMDICT_PATH),undefined) go run preprocess-jmdict.go JMdict*.xml
@echo "ERROR: Run as \`make import JMDICT_PATH=/path/to/JMdict\`".
@false
endif
go run preprocess-jmdict.go $(JMDICT_PATH)
EXPORT_FILENAME ?= entrypack-v1-$(shell cat entrypack.json | grep -o 'Creation Date: [0-9-]*' | awk '{print$$3}').json.gz EXPORT_FILENAME ?= entrypack-v1-$(shell cat entrypack.json | grep -o 'Creation Date: [0-9-]*' | awk '{print$$3}').json.gz

Loading…
Cancel
Save