pomme/Makefile
Sam Therapy 5c2dcf5cec
makefile
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-12-30 22:21:00 +01:00

15 lines
316 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