mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-09 05:07:05 +10:00
24 lines
290 B
Makefile
24 lines
290 B
Makefile
BIN = forego
|
|
SRC = $(shell find . -name '*.go' -not -path './vendor/*')
|
|
|
|
.PHONY: all build clean lint release test
|
|
|
|
all: build
|
|
|
|
build: $(BIN)
|
|
|
|
clean:
|
|
rm -f $(BIN)
|
|
|
|
lint: $(SRC)
|
|
go fmt
|
|
|
|
release:
|
|
bin/release
|
|
|
|
test: lint build
|
|
go test -v -race -cover ./...
|
|
|
|
$(BIN): $(SRC)
|
|
go build -o $@
|