rakeã«ã¯taskãfile以å¤ã«ãruleã¨ããå®ç¾©ã使ãã¾ããç°¡åã«è¨ãã¨makeã®ãµãã£ãã¯ã¹ã«ã¼ã«ã§ããããããã¡ã¤ã«ã ã£ããããããããã¡ã¤ã«ã«ãã¾ãããã¨ããæ£ããã«ã¼ã«ãå®ç¾©ããããã®ãã®ã§ãã以ä¸ç°¡åã«ä½¿ãæ¹ã rule '.o' => '.c' do |t| sh "gcc -o #{t.name} #{t.source}" end ä¸è¨ã¯ã".o"ã§çµããã¿ã¹ã¯åï¼ãã¡ã¤ã«åãããªãï¼ï¼ãä¸ãããããã®ã¿ã¹ã¯åã®".o"ã".c"ã«ç½®ãæãããã®ãã½ã¼ã¹ãã¡ã¤ã«ã¨ãããã®ã½ã¼ã¹ãã¡ã¤ã«ãåå¨ãããªãã¿ã¹ã¯ãå®è¡ãããã¨ããæå³ã«ãªãã¾ããå®éã«å®è¡ãã¦ã¿ãæ¹ãåãããããã§ããã $ ls src hello.c $ rake --rules src/hello.o # --rulesãªãã·ã§ã³ãã¤ããã¨å®éã©ããã£ã¦ruleã解決ããã¦ãããåãã Attempti
{{#tags}}- {{label}}
{{/tags}}