2
0

fix(Makefile): -e needed for color codes (#215)

closes #214

Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
Jamin Collins 2019-07-15 18:08:17 -06:00 committed by Burak Yigit Kaya
parent 9177155c79
commit af2d805f32

View File

@ -5,15 +5,15 @@ OK_COLOR=\033[32;01m
NO_COLOR=\033[0m NO_COLOR=\033[0m
build: build:
@echo "$(OK_COLOR)==>$(NO_COLOR) Building $(REPOSITORY):$(TAG)" @echo -e "$(OK_COLOR)==>$(NO_COLOR) Building $(REPOSITORY):$(TAG)"
@docker build --pull --rm -t $(REPOSITORY):$(TAG) . @docker build --pull --rm -t $(REPOSITORY):$(TAG) .
$(REPOSITORY)_$(TAG).tar: build $(REPOSITORY)_$(TAG).tar: build
@echo "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@" @echo -e "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@"
@docker save $(REPOSITORY):$(TAG) > $@ @docker save $(REPOSITORY):$(TAG) > $@
push: build push: build
@echo "$(OK_COLOR)==>$(NO_COLOR) Pushing $(REPOSITORY):$(TAG)" @echo -e "$(OK_COLOR)==>$(NO_COLOR) Pushing $(REPOSITORY):$(TAG)"
@docker push $(REPOSITORY):$(TAG) @docker push $(REPOSITORY):$(TAG)
all: build push all: build push