lindera-dictionary 0.3.3

A Japanese morphological dictionary loader.
Documentation
LINDERA_DICTIONARY_VERSION ?= $(shell cargo metadata --no-deps --format-version=1 | jq -r '.packages[] | select(.name=="lindera-dictionary") | .version')

.DEFAULT_GOAL := build

clean:
	cargo clean

format:
	cargo fmt

build:
	cargo build --release

test:
	cargo test

tag:
	git tag v$(LINDERA_DICTIONARY_VERSION)
	git push origin v$(LINDERA_DICTIONARY_VERSION)

publish:
ifeq ($(shell cargo show --json lindera-dictionary | jq -r '.versions[].num' | grep $(LINDERA_DICTIONARY_VERSION)),)
	cargo package && cargo publish
endif