lindera-core 0.3.3

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

.DEFAULT_GOAL := build

clean:
	cargo clean

format:
	cargo fmt

build:
	cargo build --release

test:
	cargo test

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

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