Add shell command to Makefile
This commit is contained in:
parent
20e5e69131
commit
805a00c75d
5
Makefile
5
Makefile
@ -4,7 +4,7 @@ DEVENV=devenv$(shell pwd | sed 's/\//-/g')
|
||||
DEVENV_IMAGE=wombatant/nostalgia-devenv
|
||||
ifneq ($(shell which docker),)
|
||||
ifeq ($(shell docker inspect --format="{{.State.Status}}" ${DEVENV} 2>&1),running)
|
||||
ENV_RUN=docker exec --user $(shell id -u ${USER}) ${DEVENV}
|
||||
ENV_RUN=docker exec -i -t --user $(shell id -u ${USER}) ${DEVENV}
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -43,6 +43,9 @@ devenv:
|
||||
devenv-destroy:
|
||||
docker rm -f ${DEVENV}
|
||||
|
||||
shell:
|
||||
${ENV_RUN} bash
|
||||
|
||||
release:
|
||||
${ENV_RUN} rm -rf build/${HOST_ENV}-release
|
||||
${ENV_RUN} ./scripts/setup_build ${HOST_ENV}
|
||||
|
Loading…
Reference in New Issue
Block a user