A library containing some data types to describe makefiles.
type MakeFile
= [MakeElement]
A make file consists of a list of make elements.
data MakeElement
A data type for the description of an element of a make file.
Constructors:
DefineVariable
:: String -> [String] -> MakeElement
Rule
:: [SpecialTarget] -> String -> [String] -> [String] -> MakeElement
Comment
:: String -> MakeElement
Empty
:: MakeElement
data SpecialTarget
A data type to describe special targets.
Constructors:
PHONY
:: SpecialTarget
NOTPARALLEL
:: SpecialTarget
Known instances:
showMakeFile
:: [MakeElement] -> String
Shows a MakeFile
as a string in standard makefile syntax.