hnblogs/Makefile

23 lines
260 B
Makefile
Raw Normal View History

2024-06-02 22:21:39 +00:00
# Targets
.PHONY: all run test clean
all: run
example: *.go ./cmd/example/*.go
go build -o $@ ./cmd/example/main.go
run: example
./example
test:
go test -v ./...
clean:
rm -f example
docker:
docker build --progress plain .
lint:
golangci-lint run