- type Rule = (Targets, Sources, Commands)
- hake :: [Rule] -> IO ()
- hakeT :: [Rule] -> FilePath -> IO ()
- hakefileIs :: FilePath -> [FilePath] -> IO ExitCode
- base :: (Targets, Sources, String -> [String] -> [MadeFromList -> IO ExitCode]) -> Rule
- file :: ([String], [String], [String]) -> Rule
- task :: (String, [String]) -> Rule
- rule :: (String, String, String -> String -> [String]) -> Rule
- ruleSS :: (String, String, String -> String -> [(String, [String])]) -> Rule
- dflt :: [String] -> Rule
- mkfl :: (String, [String]) -> Rule
- systemE :: String -> IO ExitCode
- isSuffixOf :: Eq a => [a] -> [a] -> Bool
- changeSuffix :: String -> String -> String -> String
- data ExitCode = ExitSuccess
Documentation
The hake
function take rules as argument and get target from command line and make target.
isSuffixOf :: Eq a => [a] -> [a] -> Bool
The isSuffixOf
function takes two lists and returns True
iff the first list is a suffix of the second.
Both lists must be finite.