hake: make tool. 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.
New:
deps :: [ String ] -> [ String] -> Rule deps trgts srcs == file trgts srcs $ \_ _ -> []
Use deps
if you want to define no command rule for new
Targets.
Please use addDeps if you will add dependencies to already
existing targets.
Hakefile example:
import Development.Hake import Development.Hake.FunSetRaw hake_rules = [ dflt [ "greeting" ] , file [ "greeting", "greeting.log" ] [ "hello.o", "good-bye.o" ] $ const2 [ [ "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", "hello.o", "good-by.o", "greeting", "greeting.log" ] ] , mkfl "script.sh" [ "#!/bin/sh", "echo This is script", "echo made by Hakefile" ] , ruleSS "" ".o" $ \t (s:_) -> [ (".c", [ [ "gcc", s, "-o", t ] ] ) , (".cc", [ [ "g++", s, "-o", t ] ] ) ] ) , rule ".o" ".c" $ \_ (s:_) -> [ [ "gcc", "-c", s ] ] , rule ".o" ".cc" $ \_ (s:_) -> [ [ "g++", "-c", s ] ] , base (=="foo") (const [ "foo.gen", "Hakefile" ]) $ \t (s:_) _ _ -> do gen <- readFile s writeFile t $ unlines $ [ "#!/bin/sh", "echo This is script" ] ++ lines gen return ExitSuccess ] main = hake hake_rules
Modules
[Index]
Downloads
- hake-1.3.8.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.9.5, 0.9.9, 1.0, 1.1, 1.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8.1 |
---|---|
Dependencies | base (<5), directory, filepath, mtl, process, regexpr (>=0.5.1), time, yjtools (>=0.9.10) [details] |
Tested with | ghc >=0 |
License | LicenseRef-GPL |
Author | Yoshikuni Jujo |
Maintainer | Yoshikuni Jujo <PAF01143@nifty.ne.jp> |
Category | Development |
Home page | http://homepage3.nifty.com/salamander/second/projects/hake/index.xhtml |
Uploaded | by YoshikuniJujo at 2013-12-23T15:29:54Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Executables | hake |
Downloads | 14420 total (28 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Successful builds reported [all 1 reports] |