'gnumake how to do a logical AND ifeq and ifdef
In gnumake, is it possible to do a logical and involving an ifeq and a ifdef, something like the following ?
ifeq ("$(NAME)","JOHN") $(and ifdef SOME_VAR)
// do stuff
else
// do other stuff
endif
The above evaluates the first condition, but ignores the second condition, so something is wrong, but I don't know what
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|