gitnu 0.6.5

gitnu indexes your git status so you can use numbers instead of filenames.
Documentation
BIN=$(HOME)/dots/personal/.local/bin
GITNU_RELEASE_BIN=$(PWD)/target/release/git-nu
GITNU_DEBUG_BIN=$(PWD)/target/debug/git-nu

install:
	make build
	make load-bin

dev:
	cargo build
	cargo test --lib

build:
	cargo build --release
	@echo "Release build complete."

size:
	du -sh target/*/git-nu

test:
	cargo build
	cargo test --lib

# step 1 of 2 in publishing a new version to crates.io
# this bumps the version in Cargo.toml and creates a new commit and tags it
version:
	@CARGO_MANIFEST_DIR=$(PWD) bash scripts/version.sh

# step 1 of 2 in publishing a new version to crates.io
# after running this step, the latest version will be available on Crates.io
publish:
	@CARGO_MANIFEST_DIR=$(PWD) bash scripts/publish.sh

# copies built binary to a path specified by $BIN
load-bin:
	@rm -f $(BIN)/git-nu
	@cp ./target/release/git-nu $(BIN)

ci-build:
	cargo build --bin git-nu --release

ci-test:
	cargo build
	cargo test --lib

.PHONY: test size load-bin