Comments

make ignores blank lines. It also ignores all characters from a pound sign (#) to the end of a line. Therefore, # marks the beginning of a comment. It is similar to the use of // in C++. The following is an example:

CC = gcc -ansi                # use GNU C

myprog : main.c               # myprog only depends on main.c
     ${CC} -o myprog main.c   # compile my program