mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-22 04:03:46 +00:00
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:
parent
5d5774e371
commit
c4e309bf2f
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue