14 lines
290 B
Makefile
14 lines
290 B
Makefile
|
GO_FILES := $(wildcard *.go)
|
||
|
|
||
|
all: perf
|
||
|
|
||
|
perf: $(GO_FILES)
|
||
|
docker run --rm --user "$(shell id -u):$(shell id -g)" -v "$(shell pwd)":/usr/src/myapp -w /usr/src/myapp -e GOCACHE=/usr/src/myapp/.cache golang:1.20 go build -o perf .
|
||
|
|
||
|
clean:
|
||
|
rm v0.29
|
||
|
rm -r .cache
|
||
|
rm perf
|
||
|
|
||
|
.PHONY: all clean
|