pave

Makefile

.DEFAULT_GOAL := help

SHELL  = /bin/bash
.SHELLFLAGS = -o pipefail -c

MADE ?= $(HOME)/made

.PHONY: all
all: fmt build test ## Everything that's a must before committing: fmt, build, test.

.PHONY: help
help: ## Print info about all commands
	@echo "Commands:"
	@echo
	@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
		| awk 'BEGIN {FS = ":.*?## "}; {printf "    \033[01;32m%-20s\033[0m %s\n", $$1, $$2}'

.PHONY: setup
setup: ## One-time dev env setup: activate git hooks (and install deps, if any).
	git config core.hooksPath hack/git-hooks

.PHONY: fmt
fmt: ## Format source in place.
	$(error PLACEHOLDER: formatter invocation)

.PHONY: check
check: ## Verify-only and fast; run by the pre-commit hook on every commit.
	$(error PLACEHOLDER: format check in verify mode, plus other fast verifications at this project's discretion)

.PHONY: build
build: ## Build (dev profile).
	$(error PLACEHOLDER: build invocation)

.PHONY: test
test: ## Run all tests.
	$(error PLACEHOLDER: test invocation)

.PHONY: clean
clean: ## Remove regenerable outputs.
	$(error PLACEHOLDER: removals)

.PHONY: install
install: ## Install binaries into $(MADE)/PLACEHOLDER/bin/.
	$(error PLACEHOLDER: build or copy outputs into "$(MADE)/PLACEHOLDER/bin/")

Makefile · 1.2 KiB · b131e7c978