-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
28 lines (20 loc) · 791 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
all: build
linux:
@echo " Building for Linux"
GOOS=linux GOARCH=amd64 go build -o ./cmd/git-runner/git-runner.linux.64bit -ldflags "-s -X main.Version=$(version)" main/main.go
mac:
@echo " Building for Mac"
GOOS=darwin GOARCH=amd64 go build -o ./cmd/git-runner/git-runner.mac.64bit -ldflags "-s -X main.Version=$(version)" main/main.go
windows:
@echo " Building for Windows"
GOOS=windows GOARCH=amd64 go build -o ./cmd/git-runner/git-runner.windows.64bit -ldflags "-s -X main.Version=$(version)" main/main.go
build_pre:
@echo "Building all"
build: build_pre linux mac windows
@echo "Done"
clean:
@echo "Cleaning up"
@rm -f ./cmd/git-runner/git-runner.linux.64bit
@rm -f ./cmd/git-runner/git-runner.mac.64bit
@rm -f ./cmd/git-runner/git-runner.windows.64bit
@echo "Done"