Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Helper functions for creating Makefiles.
Synopsis
- ($=) :: MVar -> String -> Doc
- win :: MVar -> String
- mac :: MVar -> String
- linux :: MVar -> String
- defineOsVars :: (MVar -> String) -> [MVar] -> Doc
- osDefinitions :: [MVar] -> Doc
- uniqueVars :: [MVar] -> [MVar]
- varName :: MVar -> String
- extractVars :: Rule -> [MVar]
- getVars :: MakeString -> [MVar]
- isOsVar :: MVar -> Bool
- addCommonFeatures :: [Rule] -> Doc -> Doc
- tab :: Doc
- msIndent :: Doc -> Doc
Documentation
osDefinitions :: [MVar] -> Doc Source #
Helper for rendering OS-specific variables.
uniqueVars :: [MVar] -> [MVar] Source #
Deduplicates a list of variables and ensures duplicate variables have the same definition.
extractVars :: Rule -> [MVar] Source #
Extracts variables from a Makefile rule.
getVars :: MakeString -> [MVar] Source #
Gets one or more variables from a MakeString.