@hackage hake0.2

ruby : rake = haskell : hake

Like ruby's rake, hake have Hakefile which is Haskell source.

And Hakefile is like rake's Rakefile, and make's Makefile.

Hakefile is just Haskell source code, then you can use all Haskell features.

import Development.Hake
hake_rules = [

 dflt	[ "greeting" ]
 ,
 file	( [ "greeting", "greeting.log" ], [ "hello.o", "good-bye.o" ] ,
		[ "linker -o greeting hello.o good-bye.o" ] )
 ,
 rule	( ".o", ".sfx1",
		\t s -> [ "compiler1 " ++ s ++ " -o " ++ t ] )
 ,
 rule	( ".o", ".sfx2",
		\t s -> [ "compiler2 " ++ s ++ " -o " ++ t ] )
 ,
 task	( "clean" , [ "rm -f *.o greeting greeting.log" ] )
 ,
 mkfl ( "script.sh", [ "#!/bin/sh", "echo This is script", "echo made by Hakefile" ] )

 ]

main = hake hake_tree