Go to the first, previous, next, last section, table of contents.


ºü¸¥ ·¹ÆÛ·±½º(Quick Reference)

ÀÌ ºÎ·ÏÀº GNU make °¡ ÀÌÇØÇÏ´Â Áö½Ã¾î, ÅؽºÆ® Á¶ÀÛ ÇÔ¼ö, ±×¸®°í Ư¼ö º¯¼öµé¿¡ ´ëÇؼ­ ¿ä¾àÇÑ °ÍÀÌ´Ù. ´Ù¸¥ ¿ä¾àµéÀ» º¸°íÀÚ ÇÑ´Ù¸é See section Ư¼ö ³»Àå Ÿ°Ù À̸§(Special Built-in Target Names), section ¹¬½ÃÀû ±ÔÄ¢µéÀÇ Ä«´Þ·Î±×(Catalogue of Implicit Rules), and section ¿É¼ÇµéÀÇ ¿ä¾à(Summary of Options).

´ÙÀ½Àº GNU make °¡ ÀνÄÇÏ´Â Áö½Ã¾îµéÀ» ¿ä¾àÇÑ °ÍÀÌ´Ù:

define variable
endef
¸ÖƼ-¶óÀÎ, Àç±ÍÀûÀ¸·Î È®ÀåµÇ´Â º¯¼ö Çϳª¸¦ Á¤ÀÇÇÑ´Ù.
See section ¸í·ÉµéÀ» ¹­¾î¼­ Á¤ÀÇÇϱâ(Defining Canned Command Sequences).
ifdef variable
ifndef variable
ifeq (a,b)
ifeq "a" "b"
ifeq 'a' 'b'
ifneq (a,b)
ifneq "a" "b"
ifneq 'a' 'b'
else
endif
makefile ÀÇ Á¶°Ç Æò°¡ ºÎºÐ.
See section MakefileÀÇ Á¶°Ç ºÎºÐ(Conditional Parts of Makefiles).
include file
´Ù¸¥ makefile À» Æ÷ÇÔÇÑ´Ù.
See section ´Ù¸¥ makefile »ðÀÔ(Including Other Makefiles).
override variable = value
override variable := value
override variable += value
override define variable
endef
º¯¼ö Çϳª¸¦ Á¤ÀÇÇÏ°í ÀÌÀüÀÇ Á¤ÀǸ¦ ¿À¹ö¶óÀ̵åÇÏ´Ù. ½ÉÁö¾î ¸í·ÉÇà¿¡¼­ÀÇ Á¤ÀDZîÁö ¿À¹ö¶óÀ̵åÇÑ´Ù.
See section override Áö½Ã¾î.
export
make ¿¡°Ô Â÷Àϵå ÇÁ·Î¼¼½ºµé¿¡°Ô µðÆúÆ®·Î ¸ðµç º¯¼öµéÀ» ÀͽºÆ÷Æ®Çϵµ·Ï Áö½Ã.
See section ¼­ºê-make¿¡ ´ëÇÑ Åë½Å º¯¼ö(Communicating Variables to a Sub-make).
export variable
export variable = value
export variable := value
export variable += value
unexport variable
make ¿¡°Ô ƯÁ¤ÇÑ º¯¼ö¸¦ Â÷Àϵå ÇÁ·Î¼¼½ºµé¿¡°Ô ÀͽºÆ÷Æ®ÇÒ °ÍÀΰ¡ ¾Æ´Ñ°¡¸¦ Áö½ÃÇÑ´Ù.
See section ¼­ºê-make¿¡ ´ëÇÑ Åë½Å º¯¼ö(Communicating Variables to a Sub-make).
vpath pattern path
`%' ÆÐÅÏ°ú ÀÏÄ¡ÇÏ´Â ÆÄÀϵ鿡 ´ëÇؼ­ °Ë»ö °æ·Î¸¦ ÁöÁ¤.
See section vpath Áö½Ã¾î.
vpath pattern
pattern ·Î »çÀü¿¡ ÁöÁ¤µÈ ¸ðµç °Ë»ö °æ·ÎµéÀ» Á¦°Å.
vpath
vpath Áö½Ã¾î¿¡ ÀÇÇؼ­ »çÀü¿¡ ÁöÁ¤µÈ ¸ðµç °Ë»ö °æ·ÎµéÀ» Á¦°Å.

´ÙÀ½Àº ÅؽºÆ® Á¶ÀÛ ÇÔ¼öµéÀÇ ¿ä¾àÀÌ´Ù (see section ÅؽºÆ® º¯È¯À» À§ÇÑ ÇÔ¼ö(Functions for Transforming Text)): Here is a summary of the text manipulation functions (see section ÅؽºÆ® º¯È¯À» À§ÇÑ ÇÔ¼ö(Functions for Transforming Text)):

$(subst from,to,text)
text ¿¡¼­ from ¸¦ to ·Î ±³Ã¼.
See section ¹®ÀÚ ´ëÀÔ°ú ºÐ¼®À» À§ÇÑ ÇÔ¼öµé(Functions for String Substitution and Analysis).
$(patsubst pattern,replacement,text)
text ¿¡¼­ pattern °ú ÀÏÄ¡ÇÏ´Â °ÍÀ» replacement ·Î ±³Ã¼.
See section ¹®ÀÚ ´ëÀÔ°ú ºÐ¼®À» À§ÇÑ ÇÔ¼öµé(Functions for String Substitution and Analysis).
$(strip string)
string ·ÎºÎÅÍ ¿©ºÐÀÇ °ø¹é ¹®ÀÚµéÀ» Á¦°Å.
See section ¹®ÀÚ ´ëÀÔ°ú ºÐ¼®À» À§ÇÑ ÇÔ¼öµé(Functions for String Substitution and Analysis).
$(findstring find,text)
text ¿¡¼­ find ¸¦ ãÀ½(locate).
See section ¹®ÀÚ ´ëÀÔ°ú ºÐ¼®À» À§ÇÑ ÇÔ¼öµé(Functions for String Substitution and Analysis).
$(filter pattern...,text)
pattern ´Ü¾îµéÁßÀÇ Çϳª¿Í ÀÏÄ¡ÇÏ´Â text ³»ÀÇ ´Ü¾îµéÀ» ¼±ÅÃ.
See section ¹®ÀÚ ´ëÀÔ°ú ºÐ¼®À» À§ÇÑ ÇÔ¼öµé(Functions for String Substitution and Analysis).
$(filter-out pattern...,text)
pattern ´Ü¾îµéÁßÀÇ Çϳª¿Í ÀÏÄ¡ÇÏÁö ¾Ê´Â ´Ü¾îµéÀ» text¿¡¼­ ¼±ÅÃ.
See section ¹®ÀÚ ´ëÀÔ°ú ºÐ¼®À» À§ÇÑ ÇÔ¼öµé(Functions for String Substitution and Analysis).
$(sort list)
list ¿¡ ÀÖ´Â ´Ü¾îµéÀ» »çÀü½ÄÀ¸·Î ¼ÒÆÃÇÏ°í Áߺ¹µÈ °ÍµéÀ» Á¦°Å.
See section ¹®ÀÚ ´ëÀÔ°ú ºÐ¼®À» À§ÇÑ ÇÔ¼öµé(Functions for String Substitution and Analysis).
$(dir names...)
°¢ ÆÄÀÏ À̸§¿¡¼­ µð·ºÅ丮 ºÎºÐÀ» ÃßÃâ.
See section ÆÄÀÏ À̸§µéÀ» À§ÇÑ ÇÔ¼ö(Functions for File Names).
$(notdir names...)
°¢ ÆÄÀÏ À̸§¿¡¼­ ºñ-µð·ºÅ丮 ºÎºÐÀ» ÃßÃâ.
See section ÆÄÀÏ À̸§µéÀ» À§ÇÑ ÇÔ¼ö(Functions for File Names).
$(suffix names...)
°¢ ÆÄÀÏ À̸§ÀÇ È®ÀåÀÚ(¸¶Áö¸· `.'°ú ´ÙÀ½ ¹®ÀÚµé)¸¦ ÃßÃâ.
See section ÆÄÀÏ À̸§µéÀ» À§ÇÑ ÇÔ¼ö(Functions for File Names).
$(basename names...)
°¢ ÆÄÀÏ À̸§ÀÇ ¸öü À̸§(È®ÀåÀÚ¸¦ »« À̸§)À» ÃßÃâ.
See section ÆÄÀÏ À̸§µéÀ» À§ÇÑ ÇÔ¼ö(Functions for File Names).
$(addsuffix suffix,names...)
names ¿¡ ÀÖ´Â °¢ ´Ü¾îÀÇ µÚ¿¡´Ù suffix ¸¦ ºÙÀδÙ.
See section ÆÄÀÏ À̸§µéÀ» À§ÇÑ ÇÔ¼ö(Functions for File Names).
$(addprefix prefix,names...)
prefix ¸¦ names ¿¡ ÀÖ´Â °¢ ´Ü¾î ¾Õ¿¡´Ù ºÙÀδÙ.
See section ÆÄÀÏ À̸§µéÀ» À§ÇÑ ÇÔ¼ö(Functions for File Names).
$(join list1,list2)
µÎ ´Ü¾îµéÀÇ º´·Ä ¸®½ºÆ®¸¦ ¹­´Â´Ù.
See section ÆÄÀÏ À̸§µéÀ» À§ÇÑ ÇÔ¼ö(Functions for File Names).
$(word n,text)
text ¿¡¼­ n¹ø° ´Ü¾î(½ÃÀÛÀº 1)¸¦ ÃßÃâÇÑ´Ù.
See section ÆÄÀÏ À̸§µéÀ» À§ÇÑ ÇÔ¼ö(Functions for File Names).
$(words text)
text ¿¡¼­ ´Ü¾îµéÀÇ °³¼ö¸¦ °è»êÇÑ´Ù.
See section ÆÄÀÏ À̸§µéÀ» À§ÇÑ ÇÔ¼ö(Functions for File Names).
$(firstword names...)
names ÀÇ Ã¹¹ø° ´Ü¾î¸¦ ÃßÃâÇÑ´Ù.
See section ÆÄÀÏ À̸§µéÀ» À§ÇÑ ÇÔ¼ö(Functions for File Names).
$(wildcard pattern...)
½© ÆÄÀÏ À̸§ ÆÐÅÏ (`%' ÆÐÅÏÀÌ ¾Æ´Ô) °ú ÀÏÄ¡ÇÏ´Â ÆÄÀÏ À̸§µéÀ» ã´Â´Ù.
See section wildcard ÇÔ¼ö(The Function wildcard).
$(shell command)
½© ¸í·ÉÀ» ½ÇÇàÇÏ°í ±×°ÍÀÇ °á°ú¸¦ ¸®ÅÏ.
See section shell ÇÔ¼ö(The shell Function).
$(origin variable)
make º¯¼ö variable °¡ Á¤ÀÇµÈ ¹æ¹ýÀ» ¼³¸íÇÏ´Â ¹®ÀÚ¿­À» ¸®ÅÏ.
See section origin ÇÔ¼ö(The origin Function).
$(foreach var,words,text)
words ¿¡ ÀÖ´Â °¢ ´Ü¾î¸¦ °¡¸®Å°´Â var ·Î text ¸¦ Æò°¡ÇÏ°í ±× °á°ú¸¦ ¼­·Î ºÙÀδÙ.
See section foreach ÇÔ¼ö(The foreach Function).

´ÙÀ½Àº ¿ÏÀüÇÑ Á¤º¸¸¦ ´ë½ÅÇÒ ÀÚµ¿ º¯¼öµéSee section ÀÚµ¿ º¯¼öµé(Automatic Variables)ÀÇ ¿ä¾àÀÌ´Ù.

$@
Ÿ°ÙÀÇ ÆÄÀÏ À̸§.
$%
Ÿ°ÙÀÌ ¾ÆÄ«ÀÌºê ¸â¹öÀÏ ¶§, Ÿ°ÙÀÇ ¸â¹ö À̸§.
$<
ù¹ø° Á¾¼Ó¹°ÀÇ À̸§.
$?
Ÿ°Ùº¸´Ù ´õ »õ·Î¿î ¸ðµç Á¾¼Ó¹°µéÀÇ À̸§. ÀÌµé »çÀÌ´Â ½ºÆäÀ̽ºµé·Î ±¸ºÐµÈ´Ù. ¾ÆÄ«ÀÌºê ¸â¹öµéÀÎ Á¾¼Ó¹°µéÀÇ °æ¿ì À̸§ÀÖ´Â ¸â¹öµé¸¸ÀÌ »ç¿ëµÈ´Ù (see section ¾ÆÄ«À̺ê ÆÄÀÏÀ» °»½ÅÇϱâ À§Çؼ­ make »ç¿ëÇϱâ(Using make to Update Archive Files)).
$^
$+
¸ðµç Á¾¼Ó¹°µéÀÇ À̸§. ÀÌµé »çÀÌ´Â °ø¹éÀ¸·Î ±¸ºÐµÈ´Ù. ¾ÆÄ«ÀÌºê ¸â¹öµéÀÎ Á¾¼Ó¹°µéÀÇ °æ¿ì À̸§ÀÖ´Â ¸â¹ö¸¸ÀÌ »ç¿ëµÈ´Ù (see section ¾ÆÄ«À̺ê ÆÄÀÏÀ» °»½ÅÇϱâ À§Çؼ­ make »ç¿ëÇϱâ(Using make to Update Archive Files)). $^ÀÇ °ªÀº Áߺ¹µÈ Á¾¼Ó¹°µéÀ» »ý·«ÇÑ´Ù. ¹Ý¸é¿¡ $+´Â ±×µéÀ» ±×´ë·Î °¡Áö°í ±×µéÀÇ ¼ø¼­¸¦ À¯ÁöÇÑ´Ù.
$*
¹¬½ÃÀûÀÎ ±ÔÄ¢ÀÌ ¸ÅÄ¡µÈ ÁÙ±â (see section ÆÐÅÏ ºñ±³ ¹æ¹ý(How Patterns Match)).
$(@D)
$(@F)
$@ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(*D)
$(*F)
$*ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(%D)
$(%F)
$%ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(<D)
$(<F)
$<ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(^D)
$(^F)
$^ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(+D)
$(+F)
$+ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(?D)
$(?F)
$?ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.

´ÙÀ½ º¯¼öµéÀº GNU make¿¡ ÀÇÇؼ­ Ưº°ÇÏ°Ô »ç¿ëµÈ´Ù:

MAKEFILES
make ÀÇ ¸ðµç ½ÇÇට¸¶´Ù ÀÐÈ÷´Â makefileµé.
See section MAKEFILES º¯¼ö(The Variable MAKEFILES).
VPATH
ÇöÀç µð·ºÅ丮¿¡¼­ ãÀ» ¼ö ¾ø´Â ÆÄÀϵ鿡 ´ëÇÑ µð·ºÅ丮 °Ë»ö °æ·Î.
See section VPATH: ¸ðµç Á¾¼Ó¹°¿¡ ´ëÇÑ °Ë»ö Æнº(Search Path for All Dependencies).
SHELL
½Ã½ºÅÛÀÇ µðÆúÆ® ¸í·É Çؼ®±âÀÇ À̸§. ÀϹÝÀûÀ¸·Î `/bin/sh'. ¸í·ÉµéÀ» ½ÇÇàÇÏ´Â µ¥ »ç¿ëµÇ´Â ½©À» º¯°æÇϱâ À§Çؼ­ makefile ¿¡¼­ SHELL À» ¼³Á¤ÇÒ ¼ö ÀÖ´Ù. See section ¸í·É ½ÇÇà(Command Execution).
MAKESHELL
MS-DOS ¿¡¼­¸¸ »ç¿ëµÇ¸ç make ¿¡ ÀÇÇؼ­ »ç¿ëµÇ´Â ¸í·É Çؼ®±âÀÇ À̸§. ÀÌ °ªÀº SHELL ÀÇ °ªº¸´Ù ¿ì¼±ÇÑ´Ù. See section ¸í·É ½ÇÇà(Command Execution).
MAKE
make °¡ È£ÃâµÈ À̸§. ÀÌ º¯¼ö¸¦ ¸í·É¿¡¼­ »ç¿ëÇÏ´Â °ÍÀº Ư¼öÇÑ Àǹ̰¡ ÀÖ´Ù. See section MAKE º¯¼ö°¡ ÀÛµ¿ÇÏ´Â ¹æ¹ý(How the MAKE Variable Works).
MAKELEVEL
Àç±ÍÀû ÁøÀÔÀÇ ´Ü°è ¹øÈ£ (¼­ºê-makeµéÀÇ).
See section ¼­ºê-make¿¡ ´ëÇÑ Åë½Å º¯¼ö(Communicating Variables to a Sub-make).
MAKEFLAGS
make ¿¡ ÁÖ¾îÁø Ç÷¡±×µé. Ç÷¡±×µéÀ» ¼³Á¤Çϱâ À§Çؼ­ ȯ°æ¿¡¼­³ª makefile ¾È¿¡¼­ ÀÌ°ÍÀ» ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
See section ¼­ºê-make¿¡ ´ëÇÑ Åë½Å ¿É¼Ç(Communicating Options to a Sub-make).
MAKECMDGOALS
make ¿¡ ´ëÇؼ­ ¸í·ÉÇà¿¡¼­ ÁÖ¾îÁø Ÿ°Ù. ÀÌ º¯¼ö¸¦ ¼³Á¤ÇÏ´Â °ÍÀº make ÀÇ ÀÛ¾÷¿¡ ¾î¶² ¿µÇâµµ ¹ÌÄ¡Áö ¾Ê´Â´Ù.
See section goalÀ» ÁöÁ¤ÇÏ´Â ¸Å°³º¯¼ö(Arguments to Specify the Goals).
CURDIR
ÇöÀç ÀÛ¾÷ µð·ºÅ丮(¸ðµç -C ¿É¼ÇµéÀÌ, ÀÖ´Ù¸é ó¸®µÈ ÈÄ)ÀÇ °æ·Î¸íÀ¸·Î ¼³Á¤µÈ´Ù. ÀÌ º¯¼ö¸¦ ¼³Á¤ÇÏ´Â °ÍÀº make ÀÇ ÀÛ¾÷¿¡ ¾î¶² ¿µÇâµµ ¹ÌÄ¡Áö ¾Ê´Â´Ù.
See section makeÀÇ Àç±ÍÀû »ç¿ë(Recursive Use of make).
SUFFIXES
make °¡ makefile µéÀ» Àбâ ÀüÀÇ Á¢¹Ì»çµéÀÇ µðÆúÆ® ¸®½ºÆ®.


Go to the first, previous, next, last section, table of contents.