A variable returns MINGW32_NT-5.1 or CYGWIN_NT-5.1. (yea, dot at the end)
Need to compare that given var contains NT-5.1 positioned anywhere.
Using cygwin and would like to be compatible with pretty much any *nix.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The findstring function is what your heart desires:
Something like:
Parse it as
ifneq(A,B)where A is the empty string and B is$(findstring...). It looks odd because you don’t quote strings in Makefiles.