forked from trivago/gollum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
43 lines (33 loc) · 938 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
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: all clean freebsd linux mac pi win current restore test
clean:
@rm -f ./gollum
@rm -f ./gollum_*.zip
linux:
@echo "Building for Linux"
@GOOS=linux GOARCH=amd64 go build -o gollum
@zip gollum_linux.zip gollum config/*.conf
mac:
@echo "Building for MacOS X"
@GOOS=darwin GOARCH=amd64 go build -o gollum
@zip gollum_mac.zip gollum config/*.conf
freebsd:
@echo "Building for FreeBSD"
@GOOS=freebsd GOARCH=amd64 go build -o gollum
@zip gollum_freebsd.zip gollum config/*.conf
win:
@echo "Building for Windows"
@GOOS=windows GOARCH=amd64 go build -o gollum
@zip gollum_win.zip gollum config/*.conf
pi:
@echo "Building for Raspberry Pi"
@GOOS=linux GOARCH=arm go build -o gollum
@zip gollum_pi.zip gollum config/*.conf
current:
@go build
restore:
@go get github.com/tools/godep
@godep restore
test:
@go test -cover -v -timeout 10s ./...
all: clean freebsd linux mac pi win current
.DEFAULT_GOAL := current