alexatop/Makefile

23 lines
260 B
Makefile

# 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