2023-03-17 14:14:12 +01:00
|
|
|
all: generate backend frontend
|
|
|
|
|
2022-05-14 16:46:03 +02:00
|
|
|
.PHONY: backend
|
2022-08-16 00:01:54 +02:00
|
|
|
backend:
|
2023-03-30 14:44:32 +02:00
|
|
|
go build -v -o pronouns -ldflags="-buildid= -X codeberg.org/u1f320/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD` -X codeberg.org/u1f320/pronouns.cc/backend/server.Tag=`git describe --tags --long`" .
|
2023-01-14 17:33:18 +01:00
|
|
|
|
|
|
|
.PHONY: generate
|
|
|
|
generate:
|
|
|
|
go generate ./...
|
2023-03-17 14:14:12 +01:00
|
|
|
|
|
|
|
.PHONY: frontend
|
|
|
|
frontend:
|
|
|
|
cd frontend && pnpm install && pnpm build
|
|
|
|
|
|
|
|
.PHONY: dev
|
|
|
|
dev:
|
|
|
|
cd frontend && pnpm dev
|