mirror of
https://codeberg.org/pronounscc/pronouns.cc.git
synced 2024-11-20 12:19:52 +01:00
17 lines
437 B
Makefile
17 lines
437 B
Makefile
all: generate backend frontend
|
|
|
|
.PHONY: backend
|
|
backend:
|
|
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`" .
|
|
|
|
.PHONY: generate
|
|
generate:
|
|
go generate ./...
|
|
|
|
.PHONY: frontend
|
|
frontend:
|
|
cd frontend && pnpm install && pnpm build
|
|
|
|
.PHONY: dev
|
|
dev:
|
|
cd frontend && pnpm dev
|