File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1616
1717.DS_Store
1818
19+ release
1920website
Original file line number Diff line number Diff line change 1+ GOCMD =go
2+ GOFILES =$(shell find . -type f -name '* .go' -not -path "./vendor/* ")
3+
4+ GOBUILD =$(GOCMD ) build
5+ GOCLEAN =$(GOCMD ) clean
6+
7+ RELEASEDIR =release
8+
9+ all : release
10+
11+ setup :
12+ mkdir -p $(RELEASEDIR )
13+
14+ clean :
15+ $(GOCLEAN )
16+ rm -rf $(RELEASEDIR )
17+ rm -rf website
18+
19+ test :
20+ go test -cover ./...
21+
22+ build-macos :
23+ GOOS=darwin $(GOBUILD ) -o main.go -o $(RELEASEDIR ) /macos/gstatic
24+
25+ build-linux :
26+ GOOS=linux $(GOBUILD ) -o main.go -o $(RELEASEDIR ) /linux/gstatic
27+
28+ build-win : setup
29+ GOOS=windows GOARCH=386 $(GOBUILD ) -o main.go -o $(RELEASEDIR ) /win/gstatic.exe
30+
31+ release : clean build-linux build-win build-macos
You can’t perform that action at this time.
0 commit comments