Makefileã®ç®çã¯ãã¡ã¤ã«æ´æ°æ¥ã¨ãã¡ã¤ã«ä¾åæ¨ã«åºã¥ããç¡é§ã®ãªãã¬ã·ã/ã³ãã³ãå®è¡ã§ãã.
(Target, Prerequisites, Recipe) ã®3ã¤çµãèãã.
make Target
ãã㨠Prerequisites ãã¡ã¤ã«ã®æ´æ°ã確èªããæ´æ°ãããã° Recipe ãå®è¡ãããªããã°ãã¹ãã.
åºæ¬ããã ã. ç¡é§ã®ãªãã¬ã·ãå®è¡ãå¯è½ã«ãªã.
ããã§æãã¤ãã®ããPrerequisites ãå¤ãã£ããä½ãç´ãã¦æ¬²ãããã¨ãããã®.
Prerequisites ã® Rrerequisitesãã¤ã¾ãåææ¡ä»¶ã®åææ¡ä»¶ãããã°ãããå®ç¾ã§ãã. ãããã£ã¦å帰çã«è¾¿ã£ã¦æ ¹å
ãæ°é®®ã ã£ãããæ¨å
¨ä½ãæ°é®®ã ã¨ç¢ºå®ã§ãã.
Makeã®è³¢ãã¨ãã㯠Target ã« Prerequisite ãæ¸ãã¨ãã¡ã¤ã«ã ããããªã ãã®3ã¤çµããã§ãã¯ããããã«ãããã¨.
ä¾ãã° (C, B, Recipe_1) & (B, A, Recipe_2) ã¨ç¨æããã°ãmake C
ããã¨ãã« B ãç¢ºèª â ãã®ã¨ã Target=Bãããããã¾ã A ã確èªããã¨å帰çã«è¾¿ããããã«ãã.
Recipe_2==change_B ã¨è¨å®ãã¦ããã°ãAã«å¤æ´ â TargetB ãèµ°ã£ã¦ B ãå¤å â TargetC ãèµ°ããã¨ããæãã«ãªã.
ããã§ä¾åæ¨ãä½ããmake
ããã ãã§æ¨ãèªåã§è¾¿ãã¯ã¬ãã¼ã«ã¬ã·ãå®è¡/ãã¹ããã¦ãããããã«ãªã£ã.