forked from bluesky-social/cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 685 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c
.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: build-all
build-all: ## Run build for all examples
cd go-repo-export; go build ./...
.PHONY: test-all
test-all: ## Run tests for all examples
cd go-repo-export; ./test.sh
.PHONY: lint-all
lint-all: ## Verify code style for all examples
cd go-repo-export; go vet ./... && test -z $(gofmt -l ./...)
.PHONY: fmt-all
fmt-all: ## Run syntax re-formatting (modify in place)
cd go-repo-export; go fmt ./...