Minor Makefile fixes

Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
Stanislav Bogatyrev 2020-12-01 14:50:23 +03:00 committed by Stanislav Bogatyrev
parent 68e552e563
commit a1d56e6b55
2 changed files with 6 additions and 3 deletions

View file

@ -43,7 +43,7 @@ get: $(foreach SVC, $(GET_SVCS), get.$(SVC))
# Start environment # Start environment
.PHONY: up .PHONY: up
up: get vendor/hosts up: pull get vendor/hosts
$(foreach SVC, $(START_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml up -d)) $(foreach SVC, $(START_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml up -d))
# Stop environment # Stop environment
@ -52,7 +52,6 @@ down:
$(foreach SVC, $(STOP_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml down)) $(foreach SVC, $(STOP_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml down))
.PHONY: vendor/hosts .PHONY: vendor/hosts
.ONESHELL:
vendor/hosts: vendor/hosts:
@for file in $(HOSTS_LINES); do \ @for file in $(HOSTS_LINES); do \
while read h; do \ while read h; do \
@ -64,3 +63,8 @@ vendor/hosts:
.PHONY: hosts .PHONY: hosts
hosts: vendor/hosts hosts: vendor/hosts
@cat vendor/hosts @cat vendor/hosts
# Clean-up the envirinment
.PHONY: clean
clean:
@rm -rf vendor/*

View file

@ -1 +0,0 @@
05