Ответ 1
Не отступайте от комментария - когда строка начинается с закладки, это команда, которая выполняется оболочкой (и оболочка рассматривает комментарий как комментарий).
Доказательство концепции (ss.mk
):
all:
echo "This is the first command"
# This comment is echoed
# This comment is not echoed
echo "This is the second command"
Пример вывода:
$ make -f ss.mk
echo "This is the first command"
This is the first command
# This comment is echoed
echo "This is the second command"
This is the second command
$