I'm trying to update my makefile instruction, but I don't understand how to do it.
I want to execute this docker instruction:
start: ## Start the environment
docker-compose stop
docker-compose up -d --remove-orphans
with this prefix:
CURRENT_UID=$(id -u):$(id -g)
like this:
start: ## Start the environment
CURRENT_UID=$(id -u):$(id -g) docker-compose stop
CURRENT_UID=$(id -u):$(id -g) docker-compose up -d --remove-orphans
If I add direct that string and I try to run the makefile in the console appear this:
CURRENT_UID=: docker-compose stop
CURRENT_UID=: docker-compose up -d --remove-orphans
The $()
did not work, so the result is just :
What do I need to do?
I tried to follow this example but it doesn't work Dollars in Makefile environment variables