mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 00:15:11 +01:00
16 lines
353 B
Makefile
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/
|