filestash/Makefile
2023-06-09 00:52:14 +10:00

16 lines
353 B
Makefile

all:
make build_init
make build_frontend
GOARCH=amd64 GOOS=linux make build_backend
build_init:
go generate -x ./server/...
build_frontend:
NODE_ENV=production npm run build
build_backend:
CGO_ENABLED=0 go build -ldflags="-extldflags=-static" -mod=vendor --tags "fts5" -o dist/filestash main.go
clean_frontend:
rm -rf server/ctrl/static/www/