mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-22 16:23:46 +00:00
19 lines
No EOL
423 B
Makefile
19 lines
No EOL
423 B
Makefile
CGO_ENABLED ?= 0
|
|
GOFLAGS ?= -trimpath -ldflags="-s -w"
|
|
|
|
PROG ?= pomme
|
|
GO_SOURCES ?= $(shell find . -name "*.go" -type f ! -name '*_test*')
|
|
GO_TEST_SOURCES ?= $(shell find . -name "*_test.go" -type f)
|
|
|
|
all: frontend backend
|
|
|
|
.PHONY: frontend
|
|
frontend:
|
|
go generate ./...
|
|
|
|
backend: $(GO_SOURCES)
|
|
go build ./cmd/pomme
|
|
|
|
lint-backend:
|
|
golangci-lint run --timeout=5m --out-format colored-line-number:stdout
|
|
.PHONY: lint-backend |