| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
BNFC.Backend.Common.Makefile
Synopsis
- mkRule :: String -> [String] -> [String] -> Doc
- mkVar :: String -> String -> Doc
- refVar :: String -> String
- mkMakefile :: Maybe String -> (String -> Doc) -> Backend
Documentation
Arguments
| :: String | The target name. |
| -> [String] | Dependencies. |
| -> [String] | Recipe. |
| -> Doc |
Creates a Makefile rule.
>>>mkRule "main" ["file1","file2"] ["do something"]main : file1 file2 do something
>>>mkRule "main" ["program.exe"] []main : program.exe
mkMakefile :: Maybe String -> (String -> Doc) -> Backend Source #
Create the Makefile file using the name specified in the option record.