Answer the question
In order to leave comments, you need to log in
How to write a regular expression check in the Makefile and the body inside?
Hello guys,
how to write a regular expression check in the Makefile and the body inside:
I need that if the word Ubuntu is found in the lsb_release expression , then execute one variable definition, otherwise - the second one.
ifeq ((lsb_release -i | awk '/Ubuntu/{print $0}'))
echo ubuntu;
_SUDO=sudo;
else
echo centos;
_SUDO=;
endif
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question