Skip to content

Commit

Permalink
changed build root
Browse files Browse the repository at this point in the history
  • Loading branch information
eze-kiel committed Apr 20, 2021
1 parent bb0869d commit c7f833f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=slowql-digest
BUILD_DIR=./out/bin/
BUILD_ROOT=./out
BUILD_ROOT=./out/bin/

GREEN := $(shell tput -Txterm setaf 2)
YELLOW := $(shell tput -Txterm setaf 3)
Expand All @@ -18,13 +17,13 @@ all: help
## Build:
digest: ## Build slowql-digest
mkdir -p ./out/bin
GO111MODULE=on $(GOCMD) build -o $(BUILD_DIR)digest ./cmd/slowql-digest/
@echo "${GREEN}[*]${RESET} digest successfully built in ${YELLOW}${BUILD_DIR}digest${RESET}"
GO111MODULE=on $(GOCMD) build -o $(BUILD_ROOT)digest ./cmd/slowql-digest/
@echo "${GREEN}[*]${RESET} digest successfully built in ${YELLOW}${BUILD_ROOT}digest${RESET}"

replayer: ## Build slowql-replayer
mkdir -p ./out/bin
GO111MODULE=on $(GOCMD) build -o $(BUILD_DIR)replayer ./cmd/slowql-replayer/
@echo "${GREEN}[*]${RESET} replayer successfully built in ${YELLOW}${BUILD_DIR}replayer${RESET}"
GO111MODULE=on $(GOCMD) build -o $(BUILD_ROOT)replayer ./cmd/slowql-replayer/
@echo "${GREEN}[*]${RESET} replayer successfully built in ${YELLOW}${BUILD_ROOT}replayer${RESET}"

clean: ## Clean all the files and binaries generated by the Makefile
rm -rf $(BUILD_ROOT)
Expand Down

0 comments on commit c7f833f

Please sign in to comment.