@@ -30,27 +30,27 @@ kubectl:
3030cluster-up :
3131 @$(MAKE ) registry-all
3232 @$(MAKE ) cli
33- @kill $(shell pgrep -f rerun ) > /dev/null 2>&1 || true
33+ @kill $(shell pgrep -f make ) > /dev/null 2>&1 || true
3434 @./bin/cortex -c=./dev/config/cluster.yaml cluster up
3535 @$(MAKE ) kubectl
3636
3737cluster-up-y :
3838 @$(MAKE ) registry-all
3939 @$(MAKE ) cli
40- @kill $(shell pgrep -f rerun ) > /dev/null 2>&1 || true
40+ @kill $(shell pgrep -f make ) > /dev/null 2>&1 || true
4141 @./bin/cortex -c=./dev/config/cluster.yaml cluster up --yes
4242 @$(MAKE ) kubectl
4343
4444cluster-down :
4545 @$(MAKE ) manager-local
4646 @$(MAKE ) cli
47- @kill $(shell pgrep -f rerun ) > /dev/null 2>&1 || true
47+ @kill $(shell pgrep -f make ) > /dev/null 2>&1 || true
4848 @./bin/cortex -c=./dev/config/cluster.yaml cluster down
4949
5050cluster-down-y :
5151 @$(MAKE ) manager-local
5252 @$(MAKE ) cli
53- @kill $(shell pgrep -f rerun ) > /dev/null 2>&1 || true
53+ @kill $(shell pgrep -f make ) > /dev/null 2>&1 || true
5454 @./bin/cortex -c=./dev/config/cluster.yaml cluster down --yes
5555
5656cluster-info :
@@ -61,13 +61,13 @@ cluster-info:
6161cluster-configure :
6262 @$(MAKE ) registry-all
6363 @$(MAKE ) cli
64- @kill $(shell pgrep -f rerun ) > /dev/null 2>&1 || true
64+ @kill $(shell pgrep -f make ) > /dev/null 2>&1 || true
6565 @./bin/cortex -c=./dev/config/cluster.yaml cluster configure
6666
6767cluster-configure-y :
6868 @$(MAKE ) registry-all
6969 @$(MAKE ) cli
70- @kill $(shell pgrep -f rerun ) > /dev/null 2>&1 || true
70+ @kill $(shell pgrep -f make ) > /dev/null 2>&1 || true
7171 @./bin/cortex -c=./dev/config/cluster.yaml cluster configure --yes
7272
7373operator-stop :
@@ -123,18 +123,21 @@ manager-local:
123123.PHONY : cli
124124cli :
125125 @mkdir -p ./bin
126- @GOARCH=amd64 CGO_ENABLED=0 go build -o ./bin/cortex ./cli
126+ @go build -o ./bin/cortex ./cli
127127
128128cli-watch :
129- @rerun -watch ./pkg ./cli -ignore ./vendor ./bin -run sh -c " go build -installsuffix cgo -o ./bin/cortex ./cli && echo 'CLI built.'"
129+ @clear && echo " building cli..."
130+ @$(MAKE ) cli
131+ @clear && echo -e " \033[1;32mCLI built\033[0m"
132+ @watchmedo shell-command --command=' clear && echo "rebuilding cli..." && go build -o ./bin/cortex ./cli && clear && echo "\033[1;32mCLI built\033[0m"' --patterns ' *.go;*.yaml' --recursive --drop ./pkg ./cli
130133
131134aws-clear-bucket :
132135 @./dev/aws.sh clear-bucket
133136
134137tools :
135138 @go get -u -v golang.org/x/lint/golint
136- @go get -u -v github.com/VojtechVitek/rerun/cmd/rerun
137- @pip3 install black
139+ @python3 -m pip install black watchdog argh pyyaml
140+ @echo -e " \nyou may also wish to install libyaml (via \` brew install libyaml \` or \` sudo apt install libyaml-dev \` ) "
138141
139142format :
140143 @./dev/format.sh
0 commit comments