[edit web page: add file again Yoshikuni Jujo **20081130035949] { adddir ./web_page/samples/file_again addfile ./web_page/samples/file_again/Hakefile hunk ./web_page/samples/file_again/Hakefile 1 +import Development.Hake +import Development.Hake.FunSetRaw + +main = hake [ + + file [ "hello", "greeting" ] [ "hello.c" ] $ \t (s:_) -> + [ [ "gcc", "-o", t, s ] ] + , + task "clean" [ [ "rm", "-f", "hello", "greeting" ] ] + + ] addfile ./web_page/samples/file_again/hello.c hunk ./web_page/samples/file_again/hello.c 1 +#include + +int +main (int argc, char *argv[]) +{ + printf( "Hello, world!\n" ); + return 0; + } hunk ./web_page/short_tutorial.xhtml.ehs 37 +

8. file again

+

8.1. file function

+

8.2. try

hunk ./web_page/short_tutorial/Hakefile 19 +fileAgainXhtml = "file_again.xhtml" hunk ./web_page/short_tutorial/Hakefile 29 +fileAgainXhtmlMoreFile = [ "Hakefile_file_again" ] hunk ./web_page/short_tutorial/Hakefile 40 + , fileAgainXhtml hunk ./web_page/short_tutorial/Hakefile 52 + ++ fileAgainXhtmlMoreFile hunk ./web_page/short_tutorial/Hakefile 63 + , (fileAgainXhtml , fileAgainXhtmlMoreFile ++ [ "Variables.hs" ] ) addfile ./web_page/short_tutorial/file_again.xhtml.ehs hunk ./web_page/short_tutorial/file_again.xhtml.ehs 1 + +<%% import Variables %%> +<%% import System.Time (getClockTime) %%> +> +file again + + +

8. file again

+

updated at <%==$ getClockTime %>

+ +

8.1. file function

+<%== catHakefile "file_again" %> + +

8.2. try

+
> hake hello
+gcc -o hello hello.c
+> hake greeting
+gcc -o greeting hello.c
+ + + }