I trying to compare variable and string in Makefile for defining different actions depending on which value user appointed to variable from the command line. But every time I get an unexpected result.
Example:
Makefile
print:
ifeq ("minikube", $(env))
@echo "yes"
else
@echo "no"
endif
Execution from shell
$ make print env=minikube
no
Additional info GNU Make version 4.2.1 GNU bash version 5.0.17 Ubuntu 20.04
Aucun commentaire:
Enregistrer un commentaire