Can someone explain how to use if-then statements and for loops in Makefiles? I can’t seem to find any good documentation with examples.
Share
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.
Conditional Forms
Simple
Moderately Complex
More Complex
Conditional Directives
If Equal Syntax
If Not Equal Syntax
If Defined Syntax
If Not Defined Syntax
foreach Function
foreach Function Syntax
foreach Semantics
For each whitespace separated word in ‘list’, the variable named by ‘var’ is set to that word and text is executed.