AT Protocol IPLD-CAR Repository toolkit (CLI)
at main 653 B view raw
1SHELL = /bin/bash 2.SHELLFLAGS = -o pipefail -c 3 4.PHONY: help 5help: ## Print info about all commands 6 @echo "Commands:" 7 @echo 8 @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[01;32m%-20s\033[0m %s\n", $$1, $$2}' 9 10.PHONY: build 11build: ## Build all executables 12 go build -ldflags "-X main._version=`git tag --sort=-version:refname | head -n 1`" ./atr.go 13b: 14 @make build 15 16install: ## Install all executables 17 go install -ldflags "-X main._version=`git tag --sort=-version:refname | head -n 1`" ./atr.go 18i: 19 @make install 20 21.PHONY: fmt 22fmt: ## Format all go files 23 go fmt ./*.go 24 25.PHONY: all 26all: build