Adding comments to Makefile

前端 未结 5 926
时光取名叫无心
时光取名叫无心 2021-02-13 19:15

How do I add comments (with echo) in a Makefile so that they\'re printed when ran?

5条回答
  •  遥遥无期
    2021-02-13 19:33

    Visual C++ nmake has the !message text... preprocessing directive. I have not used GNU make, so I don't if it has it as weel, but quick search shows it has the $(info text...) function.

    And inside command blocks you can use echo.

提交回复
热议问题