-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 717 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 717 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
(VERBOSE).SILENT:
############################# Main targets #############################
# Build the binaries.
bins: clean worker exporttool
########################################################################
##### Variables ######
ifndef GOPATH
GOPATH := $(shell go env GOPATH)
endif
GOBIN := $(if $(shell go env GOBIN),$(shell go env GOBIN),$(GOPATH)/bin)
SHELL := PATH=$(GOBIN):$(PATH) /bin/sh
COLOR := "\e[1;36m%s\e[0m\n"
bins: clean worker exporttool
##### Build #####
.PHONY: worker
worker:
@rm -rf ./worker
@go build -o worker ./cmd/worker/*.go
.PHONY: exporttool
exporttool:
@rm -rf ./exporttool
@go build -o exporttool ./cmd/exporttool/*.go
clean:
@rm -rf ./worker
@rm -rf ./exporttool