.POSIX:
.SILENT:
.PHONY: \
all \
audit \
build \
cargo-check \
clean \
clean-archive \
clean-cargo \
clean-example \
clean-ports \
clippy \
crit \
doc \
docker-build \
docker-push \
docker-test \
install \
lint \
port \
publish \
rustfmt \
test \
uninstall
.IGNORE: \
clean \
clean-archive \
clean-cargo \
clean-example \
clean-ports
VERSION=0.0.13
BANNER=crit-$(VERSION)
all: build
audit:
cargo audit
build: lint test
cargo build --release
cargo-check:
cargo check
clean: \
clean-archive \
clean-cargo \
clean-example \
clean-ports
clean-archive:
rm .crit/bin/$(BANNER).tgz
clean-cargo:
cargo clean
clean-example:
rm -f example/Cargo.lock
rm -rf example/target
rm -rf example/.crit
clean-ports:
crit -c
clippy:
cargo clippy
crit:
crit -b $(BANNER)
doc:
cargo doc
docker-build:
tuggy -t n4jm4/crit:$(VERSION) --load
docker-push:
tuggy -t n4jm4/crit:$(VERSION) -a n4jm4/crit --push
docker-test:
tuggy -t n4jm4/crit:test --load --push
install:
cargo install --force --path .
lint: \
cargo-check \
clippy \
doc \
rustfmt
port: crit
chandler -C .crit/bin -czf $(BANNER).tgz $(BANNER)
publish:
cargo publish
rustfmt:
cargo fmt
test:
cargo test
uninstall:
cargo uninstall crit