forked from mickael-kerjean/filestash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 773 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
all:
make build_init
make build_frontend
make build_backend
build_init:
go get ./...
go generate -x ./server/...
build_frontend:
make build_frontend_old
cd public && make compress
build_frontend_old:
NODE_ENV=production npm run build
mkdir -p ./server/ctrl/static/www/canary/
cp -R ./public/assets ./server/ctrl/static/www/canary/
cp -R ./public/*.html ./server/ctrl/static/www/canary/
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
clean_frontend:
rm -rf server/ctrl/static/www/