Comentarios en un archivo MAKE

Actualización: noviembre 2007

Delante de un comentario se pone un signo de número (#). NMAKE omite el texto situado a partir del signo de número hasta el siguiente carácter de nueva línea. Ejemplos:

# Comment on line by itself
OPTIONS = /MAP  # Comment on macro definition line

all.exe : one.obj two.obj  # Comment on dependency line
    link one.obj two.obj
# Comment in commands block
#   copy *.obj \objects  # Command turned into comment
    copy one.exe \release

.obj.exe:  # Comment on inference rule line
    link $<

my.exe : my.obj ; link my.obj  # Err: cannot comment this
 # Error: # must be the first character
.obj.exe: ; link $<  # Error: cannot comment this

Para especificar un signo de número literal, se ha de poner delante un símbolo de intercalación (^) del siguiente modo:

DEF = ^#define  #Macro for a C preprocessing directive

Vea también

Conceptos

Contenido de un archivo MAKE