pronounsfu/Makefile

20 lines
353 B
Makefile

.PHONY: all
all: frontend backend
mv api pronouns
.PHONY: migrate
migrate:
go run -v ./scripts/migrate
.PHONY: backend
backend:
CGO_ENABLED=0 go build -v -o api -ldflags="-buildid= -X codeberg.org/u1f320/pronouns.cc/backend/server.Revision=`git rev-parse --short HEAD`" ./backend
.PHONY: frontend
frontend:
yarn build
.PHONY: dev
dev:
yarn dev