ÀÌ ºÎ·ÏÀº GNU make
°¡ ÀÌÇØÇÏ´Â Áö½Ã¾î, ÅؽºÆ® Á¶ÀÛ ÇÔ¼ö, ±×¸®°í
Ư¼ö º¯¼öµé¿¡ ´ëÇؼ ¿ä¾àÇÑ °ÍÀÌ´Ù. ´Ù¸¥ ¿ä¾àµéÀ» º¸°íÀÚ ÇÑ´Ù¸é
See section Ư¼ö ³»Àå Ÿ°Ù À̸§(Special Built-in Target Names), section ¹¬½ÃÀû ±ÔÄ¢µéÀÇ Ä«´Þ·Î±×(Catalogue of Implicit Rules),
and section ¿É¼ÇµéÀÇ ¿ä¾à(Summary of Options).
´ÙÀ½Àº GNU make
°¡ ÀνÄÇÏ´Â Áö½Ã¾îµéÀ» ¿ä¾àÇÑ °ÍÀÌ´Ù:
define variable
endef
ifdef variable
ifndef variable
ifeq (a,b)
ifeq "a" "b"
ifeq 'a' 'b'
ifneq (a,b)
ifneq "a" "b"
ifneq 'a' 'b'
else
endif
include file
override variable = value
override variable := value
override variable += value
override define variable
endef
override
Áö½Ã¾î.
export
make
¿¡°Ô Â÷Àϵå ÇÁ·Î¼¼½ºµé¿¡°Ô µðÆúÆ®·Î ¸ðµç º¯¼öµéÀ»
ÀͽºÆ÷Æ®Çϵµ·Ï Áö½Ã.make
¿¡ ´ëÇÑ Åë½Å º¯¼ö(Communicating Variables to a Sub-make
).
export variable
export variable = value
export variable := value
export variable += value
unexport variable
make
¿¡°Ô ƯÁ¤ÇÑ º¯¼ö¸¦ Â÷Àϵå ÇÁ·Î¼¼½ºµé¿¡°Ô ÀͽºÆ÷Æ®ÇÒ °ÍÀΰ¡
¾Æ´Ñ°¡¸¦ Áö½ÃÇÑ´Ù.make
¿¡ ´ëÇÑ Åë½Å º¯¼ö(Communicating Variables to a Sub-make
).
vpath pattern path
vpath
Áö½Ã¾î.
vpath 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)
$(patsubst pattern,replacement,text)
$(strip string)
$(findstring find,text)
$(filter pattern...,text)
$(filter-out pattern...,text)
$(sort list)
$(dir names...)
$(notdir names...)
$(suffix names...)
$(basename names...)
$(addsuffix suffix,names...)
$(addprefix prefix,names...)
$(join list1,list2)
$(word n,text)
$(words text)
$(firstword names...)
$(wildcard pattern...)
wildcard
ÇÔ¼ö(The Function wildcard
).
$(shell command)
shell
ÇÔ¼ö(The shell
Function).
$(origin variable)
make
º¯¼ö variable °¡ Á¤ÀÇµÈ ¹æ¹ýÀ» ¼³¸íÇÏ´Â ¹®ÀÚ¿À»
¸®ÅÏ. origin
ÇÔ¼ö(The origin
Function).
$(foreach var,words,text)
foreach
ÇÔ¼ö(The foreach
Function).
´ÙÀ½Àº ¿ÏÀüÇÑ Á¤º¸¸¦ ´ë½ÅÇÒ ÀÚµ¿ º¯¼öµéSee section ÀÚµ¿ º¯¼öµé(Automatic Variables)ÀÇ ¿ä¾àÀÌ´Ù.
$@
$%
$<
$?
make
»ç¿ëÇϱâ(Using make
to Update Archive Files)).
$^
$+
make
»ç¿ëÇϱâ(Using make
to Update Archive Files)).
$^
ÀÇ °ªÀº Áߺ¹µÈ Á¾¼Ó¹°µéÀ» »ý·«ÇÑ´Ù. ¹Ý¸é¿¡ $+
´Â ±×µéÀ»
±×´ë·Î °¡Áö°í ±×µéÀÇ ¼ø¼¸¦ À¯ÁöÇÑ´Ù.
$*
$(@D)
$(@F)
$@
ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(*D)
$(*F)
$*
ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(%D)
$(%F)
$%
ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(<D)
$(<F)
$<
ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(^D)
$(^F)
$^
ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(+D)
$(+F)
$+
ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
$(?D)
$(?F)
$?
ÀÇ µð·ºÅ丮-¾È¿¡ ÀÖ´Â-ÆÄÀÏ ºÎºÐ°ú µð·ºÅ丮 ºÎºÐ.
´ÙÀ½ º¯¼öµéÀº GNU make
¿¡ ÀÇÇؼ Ưº°ÇÏ°Ô »ç¿ëµÈ´Ù:
MAKEFILES
make
ÀÇ ¸ðµç ½ÇÇට¸¶´Ù ÀÐÈ÷´Â makefileµé. MAKEFILES
º¯¼ö(The Variable MAKEFILES
).
VPATH
VPATH
: ¸ðµç Á¾¼Ó¹°¿¡ ´ëÇÑ °Ë»ö Æнº(Search Path for All Dependencies).
SHELL
SHELL
À» ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
See section ¸í·É ½ÇÇà(Command Execution).
MAKESHELL
make
¿¡ ÀÇÇؼ »ç¿ëµÇ´Â ¸í·É Çؼ®±âÀÇ
À̸§. ÀÌ °ªÀº SHELL
ÀÇ °ªº¸´Ù ¿ì¼±ÇÑ´Ù.
See section ¸í·É ½ÇÇà(Command Execution).
MAKE
make
°¡ È£ÃâµÈ À̸§. ÀÌ º¯¼ö¸¦ ¸í·É¿¡¼ »ç¿ëÇÏ´Â °ÍÀº Ư¼öÇÑ
Àǹ̰¡ ÀÖ´Ù.
See section MAKE
º¯¼ö°¡ ÀÛµ¿ÇÏ´Â ¹æ¹ý(How the MAKE
Variable Works).
MAKELEVEL
make
µéÀÇ).make
¿¡ ´ëÇÑ Åë½Å º¯¼ö(Communicating Variables to a Sub-make
).
MAKEFLAGS
make
¿¡ ÁÖ¾îÁø Ç÷¡±×µé. Ç÷¡±×µéÀ» ¼³Á¤Çϱâ À§Çؼ ȯ°æ¿¡¼³ª
makefile ¾È¿¡¼ ÀÌ°ÍÀ» ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.make
¿¡ ´ëÇÑ Åë½Å ¿É¼Ç(Communicating Options to a Sub-make
).
MAKECMDGOALS
make
¿¡ ´ëÇؼ ¸í·ÉÇà¿¡¼ ÁÖ¾îÁø Ÿ°Ù. ÀÌ º¯¼ö¸¦ ¼³Á¤ÇÏ´Â °ÍÀº
make
ÀÇ ÀÛ¾÷¿¡ ¾î¶² ¿µÇâµµ ¹ÌÄ¡Áö ¾Ê´Â´Ù. CURDIR
-C
¿É¼ÇµéÀÌ, ÀÖ´Ù¸é ó¸®µÈ ÈÄ)ÀÇ
°æ·Î¸íÀ¸·Î ¼³Á¤µÈ´Ù. ÀÌ º¯¼ö¸¦ ¼³Á¤ÇÏ´Â °ÍÀº make
ÀÇ ÀÛ¾÷¿¡
¾î¶² ¿µÇâµµ ¹ÌÄ¡Áö ¾Ê´Â´Ù.make
ÀÇ Àç±ÍÀû »ç¿ë(Recursive Use of make
).
SUFFIXES
make
°¡ makefile µéÀ» Àбâ ÀüÀÇ Á¢¹Ì»çµéÀÇ µðÆúÆ® ¸®½ºÆ®.
Go to the first, previous, next, last section, table of contents.