| Copyright | (c) 2016 Nicolas Mattia |
|---|---|
| License | MIT |
| Maintainer | Nicolas Mattia <nicolas@nmattia.com> |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Makefile
Description
This module defines the different types used when working with a Makefile.
# File: Makefile hello = world foo: bar baz
Makefile {
entries =
[ Assignment "hello " " world"
, Rule (Target "foo") [Dependency "bar"] [Command "baz"] ]
})
- data Makefile = Makefile {}
- data Entry
- newtype Target = Target ByteString
- newtype Dependency = Dependency ByteString
- newtype Command = Command ByteString
Documentation
A Makefile object, a list of makefile entries
A makefile entry, either a rule (target: dep1 dep1; commands) or a
variable assignment (hello = world or hello := world)
Constructors
| Rule Target [Dependency] [Command] | |
| Assignment ByteString ByteString |
Makefile target (foo in the example above)
Constructors
| Target ByteString |
newtype Dependency Source #
Target dependency (bar in the example above)
Constructors
| Dependency ByteString |
Instances