BIN_DIR ?= $(CURDIR)/bin
VERSION ?=
ifeq ($(VERSION),)
VERSION = $(shell cargo metadata --no-deps --format-version=1 | jq -r '.packages[] | select(.name=="lindera") | .version')
endif
clean:
cargo clean
format:
cargo fmt
build:
mkdir -p $(BIN_DIR)
cargo build --release
cp -p ./target/release/lindera $(BIN_DIR)
test:
cargo test