Is there a way to comment out multiple lines in makefiles like as in C syntax /* */ ?
Is there a way to comment out multiple lines in makefiles like as in
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.
No, there is nothing like C-style
/* */comments in makefiles. As somebody else suggested, you can make a multi-line comment by using line continuations. For example:However, I imagine that you are probably looking to temporarily comment out a chunk of your makefile for debugging reasons, and adding a backslash on every line is not really practical. If you are using GNU make, I suggest you use the
ifeqdirective with a deliberately false expression. For example: