mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
20 lines
488 B
Makefile
20 lines
488 B
Makefile
all:
|
|
make build_init
|
|
make build_frontend
|
|
make build_backend
|
|
|
|
build_init:
|
|
go get ./...
|
|
go generate -x ./server/...
|
|
|
|
build_frontend:
|
|
cd public && make compress
|
|
|
|
build_backend:
|
|
CGO_ENABLED=1 go build --tags "fts5" -o dist/filestash cmd/main.go
|
|
|
|
build_backend_arm64:
|
|
CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 CC=arm-linux-gnueabihf-gcc go build -o dist/filestash cmd/main.go
|
|
|
|
build_backend_amd64:
|
|
GOOS=linux CGO_ENABLED=1 GOARCH=amd64 CC=gcc go build -o dist/filestash cmd/main.go
|