pronouns.cc/Makefile

18 lines
454 B
Makefile
Raw Permalink Normal View History

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