fix(make): the stuff after the colon idk the name

make it right

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-01-09 18:57:14 +01:00
parent 5d5774e371
commit c4e309bf2f
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

View file

@ -2,19 +2,21 @@ CGO_ENABLED ?= 0
GOFLAGS ?= -trimpath -ldflags="-s -w"
PROG ?= pomme
FRONTEND ?= frontend/build/index.html
GO_SOURCES ?= $(shell find . -name "*.go" -type f ! -name '*_test*')
GO_TEST_SOURCES ?= $(shell find . -name "*_test.go" -type f)
NODE_SOURCES ?= $(shell find ./frontend -type d \( -name node_modules -o -name .svelte-kit -o -name tests \) -prune -o -name '*.ts' -o -name '*.js' -o -name '*.html' -o -name '*.svelte' -o -name '*.json' -print)
NODE_SOURCES ?= $(shell find ./frontend -type d \( -name node_modules -o -name .svelte-kit -o -name tests -o -name build \) -prune -o \( -name '*.ts' -o -name '*.js' -o -name '*.html' -o -name '*.svelte' -o -name '*.json' \) -print)
all: frontend backend
.PHONY: frontend
frontend: $(NODE_SOURCES)
$(FRONTEND): $(NODE_SOURCES)
pnpm -F frontend build
frontend: $(FRONTEND)
.PHONY: backend
$(PROG): $(GO_SOURCES)
$(PROG): $(GO_SOURCES) $(NODE_SOURCES)
go build $(GOFLAGS) ./cmd/pomme
backend: $(PROG)