-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
41 lines (27 loc) · 726 Bytes
/
Makefile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
all: install
install:
go install -gcflags="all=-N -l" .
.PHONY: install
build:
go build -o pushup .
.PHONY: build
build-docker:
docker build -t pushup .
.PHONY: build-docker
test tests:
if [ -n "$$VERBOSE" ]; then \
go test -v . ./_runtime; \
else \
go test . ./_runtime; \
fi
.PHONY: test tests
fixme todo:
@grep -h -E '(TODO|FIXME)' *.go | sed -E -e 's/.*\/\/ (TODO|FIXME)\(paulsmith\): //'
entities.go: tools/getnamedcharrefs.go
go run $< > $@
banner.txt:
echo '^ Pushup' | figlet -c -k -f lean | tr ' _/' ' //' > $@
lint:
$(if $(shell command -v golangci-lint 2> /dev/null),$(info),$(error Please install golangci-lint https://golangci-lint.run/usage/install/))
golangci-lint run
.PHONY: lint