surrealpatch/Makefile

55 lines
1 KiB
Makefile
Raw Normal View History

2022-04-09 12:38:45 +00:00
.PHONY: default
default:
@echo "Choose a Makefile target:"
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print " - " $$1}}' | sort
.PHONY: check-deps
check-deps:
@cargo make --help >/dev/null 2>&1 || { \
echo >&2 "ERROR: Install cargo-make to use make tasks."; \
echo >&2 "$ cargo install --no-default-features --force --locked cargo-make"; \
echo >&2 "More info: https://sagiegurari.github.io/cargo-make"; \
echo >&2; \
exit 1; \
}
2022-07-18 23:14:46 +00:00
.PHONY: setup
setup: check-deps
cargo make setup
2022-07-18 23:14:46 +00:00
.PHONY: docs
docs: check-deps
cargo make docs
2022-04-09 12:38:45 +00:00
.PHONY: test
test: check-deps
cargo make test
2022-04-09 12:38:45 +00:00
.PHONY: check
check: check-deps
cargo make check
2022-04-09 12:38:45 +00:00
.PHONY: clean
clean: check-deps
cargo make clean
2022-04-09 12:38:45 +00:00
.PHONY: bench
bench: check-deps
cargo make bench
2022-04-09 12:38:45 +00:00
.PHONY: serve
serve: check-deps
cargo make serve
2022-04-09 12:38:45 +00:00
.PHONY: sql
sql: check-deps
cargo make sql
2022-04-09 12:38:45 +00:00
.PHONY: quick
quick: check-deps
cargo make quick
2022-04-09 12:38:45 +00:00
.PHONY: build
build: check-deps
cargo make build