From dc59fb69312f3e03582cc9162356a9d98756a199 Mon Sep 17 00:00:00 2001 From: Nimrod Gilboa Markevich <59927337+nimrod-up9@users.noreply.github.com> Date: Tue, 3 Aug 2021 11:41:02 +0300 Subject: [PATCH] Added/edited description to Makefile commands. (#157) * Added missing description to Makefile commands. * Uppercase. --- Makefile | 24 ++++++++++++------------ cli/Makefile | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 2de4db43c..b41d265ae 100644 --- a/Makefile +++ b/Makefile @@ -20,14 +20,14 @@ TS_SUFFIX="$(shell date '+%s')" GIT_BRANCH="$(shell git branch | grep \* | cut -d ' ' -f2 | tr '[:upper:]' '[:lower:]' | tr '/' '_')" BUCKET_PATH=static.up9.io/mizu/$(GIT_BRANCH) -ui: ## build UI +ui: ## Build UI. @(cd ui; npm i ; npm run build; ) @ls -l ui/build -cli: # build CLI +cli: ## Build CLI. @echo "building cli"; cd cli && $(MAKE) build -agent: ## build mizuagent server +agent: ## Build agent. @(echo "building mizu agent .." ) @(cd agent; go build -o build/mizuagent main.go) @ls -l agent/build @@ -36,17 +36,17 @@ agent: ## build mizuagent server # @(cd tap; go build -o build/tap ./src) # @ls -l tap/build -docker: ## build Docker image +docker: ## Build Docker image. @(echo "building docker image" ) ./build-push-featurebranch.sh -push: push-docker push-cli ## build and publish Mizu docker image & CLI +push: push-docker push-cli ## Build and publish agent docker image & CLI. -push-docker: +push-docker: ## Build and publish agent docker image. @echo "publishing Docker image .. " ./build-push-featurebranch.sh -push-cli: +push-cli: ## Build and publish CLI. @echo "publishing CLI .. " @cd cli; $(MAKE) build-all @echo "publishing file ${OUTPUT_FILE} .." @@ -55,17 +55,17 @@ push-cli: gsutil setmeta -r -h "Cache-Control:public, max-age=30" gs://${BUCKET_PATH}/\* -clean: clean-ui clean-agent clean-cli clean-docker ## Clean all build artifacts +clean: clean-ui clean-agent clean-cli clean-docker ## Clean all build artifacts. -clean-ui: +clean-ui: ## Clean UI. @(rm -rf ui/build ; echo "UI cleanup done" ) -clean-agent: +clean-agent: ## Clean agent. @(rm -rf agent/build ; echo "agent cleanup done" ) -clean-cli: +clean-cli: ## Clean CLI. @(cd cli; make clean ; echo "CLI cleanup done" ) -clean-docker: +clean-docker: @(echo "DOCKER cleanup - NOT IMPLEMENTED YET " ) diff --git a/cli/Makefile b/cli/Makefile index b228e9fd1..76a36ad20 100644 --- a/cli/Makefile +++ b/cli/Makefile @@ -13,7 +13,7 @@ help: ## This help. install: go install mizu.go -build: ## build mizu CLI binary (select platform via GOOS / GOARCH env variables) +build: ## Build mizu CLI binary (select platform via GOOS / GOARCH env variables). go build -ldflags="-X 'github.com/up9inc/mizu/cli/mizu.GitCommitHash=$(COMMIT_HASH)' \ -X 'github.com/up9inc/mizu/cli/mizu.Branch=$(GIT_BRANCH)' \ -X 'github.com/up9inc/mizu/cli/mizu.BuildTimestamp=$(BUILD_TIMESTAMP)' \ @@ -21,7 +21,7 @@ build: ## build mizu CLI binary (select platform via GOOS / GOARCH env variables -o bin/mizu_$(SUFFIX) mizu.go (cd bin && shasum -a 256 mizu_${SUFFIX} > mizu_${SUFFIX}.sha256) -build-all: ## build for all supported platforms +build-all: ## Build for all supported platforms. @echo "Compiling for every OS and Platform" @mkdir -p bin && echo "SHA256 checksums available for compiled binaries \n\nRun \`shasum -a 256 -c mizu_OS_ARCH.sha256\` to verify\n\n" > bin/README.md @$(MAKE) build GOOS=darwin GOARCH=amd64 @@ -35,6 +35,6 @@ build-all: ## build for all supported platforms @echo "---------" @find ./bin -ls -clean: ## clean all build artifacts +clean: ## Clean all build artifacts. go clean rm -rf ./bin/*