-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 691 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 691 Bytes
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
31
32
33
build-frontend:
cd frontend && npm install && npm run build
build-backend:
mkdir -p bin
cd backend && CGO_ENABLED=0 go build -a -tags netgo,osusergo -ldflags '-w -extldflags "-static"' -trimpath -o seif && mv seif ../bin
build-backend-nostatic:
mkdir -p bin
cd backend && CGO_ENABLED=0 go build -trimpath -o seif && mv seif ../bin
build:
make build-frontend
make build-backend
zbuild:
make build
strip bin/seif
upx --ultra-brute bin/seif
run-devel:
make build-frontend
cd backend && go run main.go --db seif.db
update:
cd frontend && npm update
cd backend && go get -u && go mod tidy
clean:
rm -rf frontend/node_modules
rm -rf bin
rm -f backend/seif.db
rm -f seif.db