1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-22 04:43:00 +00:00

Update Makefile

Remove unused `bash` call, correct suffix removal
This commit is contained in:
Jörn-Michael Miehe 2019-10-15 21:53:41 +02:00 committed by GitHub
parent d3434557fc
commit 9910619bf1

View file

@ -3,13 +3,13 @@
DOCKER:=docker
DOCKER_COMPOSE:=docker-compose
docker_bash=bash -c '$(1)'
docker_bash=$(1)
# Check if needs root privileges?
PRIVGROUP:=docker
ifneq ($(findstring $(PRIVGROUP),$(shell groups)),$(PRIVGROUP))
DOCKER:=sudo $(DOCKER)
docker_bash=sudo $(docker_bash)
docker_bash=sudo bash -c '$(1)'
endif
#########
@ -60,7 +60,7 @@ FILE_DOCKERNET:=$(CONF_TARGETROOT)/up-$(CONF_DOCKERNET)
# project directory handling
PROJ_WILDC:=$(wildcard *$(PROJ_SUFFX))
PROJ_NAMES:=$(basename $(PROJ_WILDC))
PROJ_NAMES:=$(patsubst %$(PROJ_SUFFX),%,$(PROJ_WILDC))
#########
# FUNCTIONS
@ -70,7 +70,7 @@ PROJ_NAMES:=$(basename $(PROJ_WILDC))
# - with sourced *.conf files
# - with COMPOSE_PROJECT_NAME, CONFDIR and TARGETDIR set
kiwicompose=$(call docker_bash,\
cd "$(<)"; \
cd "$<"; \
$(CONF_SOURCE) \
COMPOSE_PROJECT_NAME="$(patsubst %$(PROJ_SUFFX),%,$<)" \
CONFDIR="$(CONF_TARGETROOT)/conf" \