1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
module ICurry.Extended.Build(
generateExtendedICurryEdges,
eicyRule,
cToEicy
) where
import FilePath
import Ninja.Types
import ICurry.DependencyResolution
import ICurry.Build
generateExtendedICurryEdges :: FilePath -> [ModuleDep] -> [Decl]
generateExtendedICurryEdges = generateEdges "eicy" "icy" "eicy" True Nothing
eicyRule :: FilePath -> Decl
eicyRule path = Rule "eicy"
[("command", "icurry i2e -I \"" ++ path ++ "\" $in $out")]
cToEicy :: String -> [ModuleDep] -> [Decl]
cToEicy buildDir dg = [tfcyRule, icyRule buildDir, eicyRule buildDir]
++ generateFlatCurryEdges dg
++ generateICurryEdges buildDir dg
++ generateExtendedICurryEdges buildDir dg
|