Samagra-Development / devops

0 stars 0 forks source link

if conditions not getting evaluated correctly in Makefile #25

Closed singhalkarun closed 5 months ago

singhalkarun commented 5 months ago

Even if we set ENABLE_FORCE_RECREATE=0, it is force recreating the container. It seems any non empty value is being evaluated as true.

Using a different syntax solves for it

$(if $(filter 1,$(ENABLE_FORCE_RECREATE)),--force-recreate,)