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


@shorttitlepage GNU Make Copyright (C) 1988, '89, '90, '91, '92, '93, '94, '95, '96, '97 Free Software Foundation, Inc. Published by the Free Software Foundation
59 Temple Place -- Suite 330,
Boston, MA 02111-1307 USA
Printed copies are available for $20 each.
ISBN 1-882114-80-9

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation. Cover art by Etienne Suvasa.

makeÀÇ °³°ü

make À¯Æ¿¸®Æ¼´Â Å« ÇÁ·Î±×·¥ ³»ÀÇ ¾î¶² ºÎºÐµéÀ» ´Ù½Ã ÄÄÆÄÀÏÇØ¾ß ÇÏ´ÂÁö ÀÚµ¿À¸·Î ÆÇ´ÜÇÏ°í, ´Ù½Ã ÄÄÆÄÀÏÇÏ´Â ¸í·É¾î¸¦ ½ÇÇàÇÑ´Ù. ÀÌ ¸Å´º¾ó¿¡¼­´Â Richard Stallman°ú Roland McGrath°¡ ±¸ÇöÇÑ GNU make¿¡ ´ëÇØ ¼³¸íÇÑ´Ù. GNU make´Â IEEE Standard 1003.2-1992(POSIX.2)ÀÇ section 6.2¿¡ µû¸£´Â ÇÁ·Î±×·¥ÀÌ´Ù.

¿©±â¼­ ¿ì¸®°¡ »ç¿ëÇÏ´Â ¿¹Á¦´Â C ÇÁ·Î±×·¥ÀÌ´Ù. C ÇÁ·Î±×·¥ÀÌ °¡Àå ¸¹ÀÌ ¾²À̱⠶§¹®¿¡ ¿©±â¼­ C ÇÁ·Î±×·¥À» »ç¿ëÇßÁö¸¸, make´Â ¼Ð¿¡¼­ ½ÇÇà½Ãų ¼ö ÀÖ´Â ¾î¶°ÇÑ ÇÁ·Î±×·¡¹Ö ¾ð¾îÀÇ ÄÄÆÄÀÏ·¯¿Íµµ ÇÔ²² »ç¿ëÇÒ ¼ö ÀÖ´Ù. °Ô´Ù°¡ make´Â ÇÁ·Î±×·¥¿¡¸¸ »ç¿ëµÇµµ·Ï ±¹ÇÑµÈ µµ±¸°¡ ¾Æ´Ï´Ù. ¾î¶² ÆÄÀÏÀÌ ¹Ù²î¾úÀ» ¶§ ±× ÆÄÀϷκÎÅÍ ÀÚµ¿À¸·Î ¶Ç ´Ù¸¥ ÆÄÀÏÀ» °»½ÅÇØ¾ß ÇÏ´Â °æ¿ì°¡ ÀÖ´Â ¾î¶°ÇÑ ÀÛ¾÷¿¡¼­µµ make¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù.

make¸¦ »ç¿ëÇÒ Áغñ ÀÛ¾÷À¸·Î, ¸ÞÀÌÅ©ÆÄÀÏ(makefile)À̶ó°í ÇÏ´Â ÆÄÀÏÀ» ÀÛ¼ºÇØ¾ß ÇÑ´Ù. ¸ÞÀÌÅ©ÆÄÀÏ(makefile)¿¡´Â ÇÁ·Î±×·¥ ³»ÀÇ ÆÄÀÏµé »çÀÌÀÇ °ü°è ¹× °¢ ÆÄÀÏÀ» °»½ÅÇÒ ¶§ »ç¿ëÇÏ´Â ¸í·É¾îµéÀÌ µé¾î ÀÖ´Ù. ÈçÇÑ °æ¿ì·Î, ¾î¶² ÇÁ·Î±×·¥¿¡¼­ ½ÇÇà ÆÄÀÏÀº ¿ÀºêÁ§Æ® ÆÄÀÏ¿¡¼­ºÎÅÍ °»½ÅµÇ°í, ±× ¿ÀºêÁ§Æ® ÆÄÀÏÀº ¼Ò½º ÆÄÀÏÀ» ÄÄÆÄÀÏÇؼ­ ¸¸µé¾î Áø´Ù.

ÀÏ´Ü Àû´çÇÑ ¸ÞÀÌÅ©ÆÄÀÏ(makefile)ÀÌ ÀÖÀ¸¸é, ¼Ò½º ÆÄÀÏÀ» ¹Ù²åÀ» ¶§¸¶´Ù ´ÙÀ½ °£´ÜÇÑ ¼Ð ¸í·É¾î¸¦ ½ÇÇàÇϸé:

make

¸ðµç ÀçÄÄÆÄÀÏ °úÁ¤À» ¼öÇàÇÑ´Ù. make ÇÁ·Î±×·¥Àº ¸ÞÀÌÅ©ÆÄÀÏÀ» µ¥ÀÌŸº£À̽º·Î »ç¿ëÇÏ°í ÆÄÀÏÀÇ ¸¶Áö¸· º¯°æ ½Ã°¢À» º¸°í ¾î¶² ÆÄÀÏÀÌ ¾÷µ¥ÀÌÆ®µÇ¾î¾ß ÇÒ Áö °áÁ¤ÇÑ´Ù. °¢ ÆÄÀÏ¿¡ ´ëÇؼ­ µ¥ÀÌŸº£À̽º¿¡ ¾²¿© ÀÖ´Â ¸í·É¾î¸¦ ½ÇÇàÇÑ´Ù.

¾î¶² ÆÄÀÏÀÌ, ¾î¶»°Ô ÀçÄÄÆÄÀÏµÇ¾ß ÇÏ´ÂÁö ÁöÁ¤ÇÏ°í ½ÍÀ» ¶§ makeÀÌ ¸í·ÉÇà¿¡ ÀÎÀÚ¸¦ ¾´´Ù. See section ¸í·É¾î ½ÇÇà.

ÀÌ ¸Å´º¾ó Àд ¹ý

make¸¦ óÀ½ Á¢Çϰųª, ÀϹÝÀûÀÎ ¼Ò°³¸¦ ã°í ÀÖ´Ù¸é, °¢ ÀåÀÇ Ã¹ºÎºÐ¿¡ ÀÖ´Â ÀýÀ» Àаí, ³ª¸ÓÁö ÀýµéÀº ±×³É Áö³ªÄ£´Ù. °¢ Àå¿¡¼­ ùºÎºÐÀÇ ÀýµéÀº ¼Ò°³ ȤÀº ÀϹÝÀûÀÎ Á¤º¸¸¦ ´ã°í ÀÖ°í, ³ªÁßÀÇ ÀýµéÀº Ư¼öÇÑ °æ¿ì ȤÀº ±â¼úÀûÀÎ Á¤º¸¸¦ ´ã°í ÀÖ´Ù. ±× ¿¹¿Ü´Â @xref{Introduction, ,An Introduction to Makefiles}ÀÌ´Ù. ¿©±â¼­´Â ¸ðµç ºÎºÐÀÌ ¼Ò°³ÀÇ ±ÛÀÌ´Ù.

ÀÌ¹Ì ´Ù¸¥ make ÇÁ·Î±×·¥¿¡ Àͼ÷ÇØÁ® ÀÖ´Ù¸é, see section Features of GNU make¿¡ GNU make¸¸ÀÌ °¡Áø ´õ ÁÁÀº ±â´ÉÀÌ ¿­°ÅµÇ¾î ÀÖ°í, see section Incompatibilities and Missing Features¿¡ ´Ù¸¥ make ÇÁ·Î±×·¥ÀÌ °¡Áø ±â´Éµé Áß¿¡¼­ GNU make¿¡ ¾ø´Â ±â´ÉµéÀ» ¼³¸íÇØ ³õ¾Ò´Ù.

°£´ÜÇÑ ¿ä¾àÀ» º¸·Á¸é, section Summary of Options, section Quick Reference, ±×¸®°í section Special Built-in Target Names¸¦ º¸¶ó.

¹®Á¦Á¡°ú ¹ö±×

GNU make¿¡ ¹®Á¦°¡ Àְųª, ¹ö±×¸¦ ã¾Ò´Ù°í »ý°¢µÇ¸é ±× ¹®Á¦Á¡À» °³¹ßÀÚ¿¡°Ô º¸°íÇØ Áֱ⠹ٶõ´Ù; ¾Æ¹«°Íµµ ¾à¼ÓÇØ ÁÙ ¼ö´Â ¾øÁö¸¸ ¿ì¸®´Â ±× ¹®Á¦Á¡À» °íÄ¡·Á°í ÇÒ °ÍÀÌ´Ù.

¹ö±×¸¦ º¸°íÇϱâ Àü¿¡, Á¤¸» ÁøÂ¥ ¹ö±×¸¦ ã¾Æ³Â´ÂÁö È®ÀÎÇ϶ó. ÁÖÀÇ ±í°Ô ¹®¼­¸¦ ´Ù½Ã Àо°í, ¹®¼­¿¡¼­ ½ÃµµÇß´ø ÀÏÀ» Á¤¸»·Î ÇÒ ¼ö ÀÖ´Ù°í ¾²¿© ÀÖ´ÂÁö È®ÀÎÇÑ´Ù. ¹«¾ùÀ» ÇÒ ¼ö ÀÖ°í ÇÒ ¼ö ¾ø´ÂÁö ºÐ¸íÈ÷ ¾Ë ¼ö ¾ø´Ù¸é, ±×°Íµµ º¸°íÇØ Áֱ⠹ٶõ´Ù; ÀÌ°Ç ¹®¼­ÀÇ ¹ö±×ÀÌ´Ù!

¹ö±×¸¦ º¸°íÇϰųª, ¼Õ¼ö °íÄ¡·Á°í ½ÃÇϱâ Àü¿¡, ¹ö±×¸¦ ´Ù½Ã ¸¸µé¾î ³¾ ¼ö ÀÖ´Â °¡´ÉÇÑÇÑ ÀÛÀº ¸ÞÀÌÅ©ÆÄÀÏÀ» ¸¸µé¾î º¸±â ¹Ù¶õ´Ù. ±× ´ÙÀ½¿¡ ±× ¸ÞÀÌÅ©ÆÄÀÏ°ú make¸¦ ½ÇÇàÇÑ Á¤È®ÇÑ °á°ú¸¦ º¸³»Áֱ⠹ٶõ´Ù. ¶Ç ¾î¶² ÀÏÀÌ ÀϾ±æ ±â´ëÇß´ÂÁö ¾´´Ù; ÀÌ·¸°Ô ÇÏ¸é ¹®¼­¿¡ ¾î¶² ¹®Á¦Á¡ÀÌ ÀÖ´ÂÁö ÆľÇÇϱⰡ ½¬¿öÁø´Ù.

Á¤È®ÇÑ ¹®Á¦Á¡À» ¾Ë¾Æ³ÂÀ¸¸é, ÀüÀÚ¸ÞÀÏÀ» ´ÙÀ½ ÁÖ¼Ò·Î º¸³½´Ù:

    bug-make@gnu.org

makeÀÇ ¹öÀü ¹øÈ£¸¦ Æ÷ÇÔÇØ Áֱ⠹ٶõ´Ù. ¹öÀü ¹øÈ£´Â `make --version'À¸·Î ¾Ë¾Æ ³¾ ¼ö ÀÖ´Ù. »ç¿ëÁßÀÎ ±â°è¿Í ¿î¿µÃ¼Á¦ÀÌ Á¾·ù¸¦ Æ÷ÇÔÇÏ´Â °É ÀØÁö ¸»¾Æ¾ß ÇÑ´Ù. °¡´ÉÇÏ´Ù¸é, ÄÁÇÇ±× °úÁ¤(configuration process)¿¡¼­ ¸¸µé¾î Áö´Â `config.h' ÆÄÀÏÀÇ ³»¿ëÀ» Æ÷ÇÔÇϸé ÁÁ´Ù.


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