-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
38 lines (28 loc) · 1.11 KB
/
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
31
32
33
34
35
36
37
38
debug:
@go-bindata -debug=true -ignore=\\.bower\\.json static/...
@go build
bindata.go:
@go-bindata -ignore=\\.bower\\.json static/...
release/digitalsignage_osx_64:
@CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -ldflags '-s -w' -o release/digitalsignage_osx_64
release/digitalsignage_linux_64:
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-s -w' -o release/digitalsignage_linux_64
release/digitalsignage_windows_64.exe:
@CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -a -ldflags '-s -w' -o release/digitalsignage_windows_64.exe
build: release/digitalsignage_osx_64 release/digitalsignage_linux_64 release/digitalsignage_windows_64.exe
release:
$(MAKE) bindata.go
$(MAKE) build
compress_osx:
$(MAKE) bindata.go
$(MAKE) release/digitalsignage_osx_64
upx -7 release/digitalsignage_osx_64
compress_linux:
$(MAKE) bindata.go
$(MAKE) release/digitalsignage_linux_64
upx -7 release/digitalsignage_linux_64
compress_windows:
$(MAKE) bindata.go
$(MAKE) release/digitalsignage_windows_64.exe
upx -7 release/digitalsignage_windows_64.exe
compress: compress_osx compress_linux compress_windows