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


Automake·Î´Â ÃæºÐÇÏÁö ¾ÊÀ» ¶§

automakeÀÇ ±×´ë·Î º¹»çÇÏ´Â ±â´ÉÀ¸·Î ¸¹Àº ¹®Á¦µéÀº ´Ü¼øÈ÷ make target°ú ruleÀ» `Makefile.in'¿¡ Ãß°¡Çؼ­ ÇØ°áÇÒ ¼ö ÀÖ´Ù. automake´Â ÀÌ·¯ÇÑ Ãß°¡¸¦ ¹«½ÃÇÒ °ÍÀÌ´Ù.

±×·¸°Ô Çϴµ¥ ¸î°¡Áö °æ°í°¡ ¿©±â ÀÖ´Ù. automake¿¡¼­ ÀÌ¹Ì »ç¿ëµÇ°í ÀÖ´Â targetÀ» ´Ù½Ã Á¤ÀÇÇÒ ¼ö ÀÖÁö¸¸, ´ëºÎºÐ ±×°ÍÀº ÃßõÇÒ ¹Ù°¡ ¸øµÈ´Ù. ƯÈ÷ non-flat ÆÐÅ°ÁöÀÇ ¸Ç À§ µð·ºÅ丮´Â ±×·¸´Ù. ÇÏÁö¸¸, ¿©·¯°¡Áö À¯¿ëÇÑ Å¸°ÙµéÀÌ `Makefile.in'¿¡¼­ ÁöÁ¤ÇÒ ¼ö ÀÖ´Â `-local'¹öÀüÀÌ ÀÖ´Ù. Automake´Â ÀÌ·¯ÇÑ »ç¿ëÀÚ°¡ Á¦°øÇÑ targetµéÀ» Ç¥ÁØ target¿¡ Ãß°¡ÇÒ °ÍÀÌ´Ù.

local ¹öÀüÀ» Áö¿øÇÏ´Â targetÀº all, info, dvi, check, install-data, install-exec, uninstall, ±×¸®°í ¿©·¯°¡Áö clean targetµé (mostlyclean, clean, distclean, ±×¸®°í maintainer-clean)ÀÌ´Ù. uninstall-exec-localÀ̳ª uninstall-data-local targetÀº ¾ø´Ù´Â °Í¿¡ À¯ÀÇÇÏÀÚ; ±×³É uninstall-localÀ» »ç¿ëÇ϶ó. µ¥ÀÌŸ³ª ½ÇÇàÈ­Àϸ¸À» uninstallÇÏ´Â °ÍÀº Àǹ̰¡ ¾ø´Ù.

¿¹¸¦ µé¾î, `/etc'¿¡ ÆÄÀÏÀ» ¼³Ä¡ÇÏ´Â ¹æ¹ýÀÌ ¿©±â ÀÖ´Ù:

install-data-local:
        $(INSTALL_DATA) $(srcdir)/afile /etc/afile

hookÀ̶ó°í ÇÏ´Â ¾î¶² targetÀÌ ±× ÀÏÀÌ ³¡³­ µÚ¿¡ ¶Ç´Ù¸¥ targetÀ» ½ÇÇà½ÃÅ°´Â ¹æ¹ýÀÌ ÀÖ´Ù. hookÀº ±× ÁÖ¿ä target¿¡ `-hook'ÀÌ µÚ¿¡ ºÙ¾î¼­ À̸§Áö¾î Áø´Ù. hookÀ» ¸¸µé ¼ö ÀÖ´Â targetÀº install-data, install-exec, dist, ±×¸®°í distcheckÀÌ´Ù.

¿¹¸¦ µé¾î, ¿©±â ¼³Ä¡µÈ ÇÁ·Î±×·¥ÀÇ hard link¸¦ ¸¸µå´Â ¹æ¹ýÀÌ ÀÖ´Ù.

install-exec-hook:
        ln $(bindir)/program $(bindir)/proglink


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