.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: tests
tests:
@cargo test $UNIT_TEST --verbose --lib
.PHONY: build
build: tests
@cargo build --release
.PHONY: integration
integration:
@cargo test --test '*'
.PHONY: ci-integration
ci-integration:
@cargo test --test '*'
.PHONY: lint
lint:
@cargo fmt -- --check
.PHONY: linter
linter: lint
.PHONY: install
install: tests
GITSHA="$(shell git rev-parse --short HEAD)" cargo install --path .
.PHONY: integration-clean
integration-clean:
rm -rf /tmp/fzz || sudo rm -rf /tmp/fzz
.PHONY: nix-gen-patch
nix-gen-patch:
@git diff origin/master -r -u > nix/gitdiff.patch
.PHONY: nix-flake-check
nix-flake-check:
@nix flake check
.PHONY: nix-build-all
nix-build-all: nix-build nix-build-nightly
echo "Done"
.PHONY: nix-build-nightly
nix-build-nightly:
@nix build .#funzzyNightly --verbose -L
.PHONY: nix-build
nix-build:
@nix build .#funzzy --verbose -L
.PHONY: nix-bump
nix-bump:
@sed -i 's/sha256-.*=//g' nix/package.nix
@sed -i 's/sha256-.*=//g' nix/package-from-source.nix