Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (33 sloc) 1.161 kb
ae587ec @igfoo Refactor how dependencies are included; fixes #5109
igfoo authored
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2009 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
7 # To understand how the build system works and how to modify it, see
8 # http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
9 # http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
10 #
11 # -----------------------------------------------------------------------------
12
13 define dependencies
14 $(call trace, dependencies($1,$2,$3))
15 $(call profStart, dependencies($1,$2,$3))
16 # $1 = dir
17 # $2 = distdir
18 # $3 = GHC stage to use (0 == bootstrapping compiler)
19
20 # We always have the dependency rules available, as we need to know
21 # how to build hsc2hs's dependency file in phase 0
22 $(call build-dependencies,$1,$2,$3)
23
24 ifneq "$(phase)" "0"
25 # From phase 1 we actually include the dependency files for the
26 # bootstrapping stuff
27 ifeq "$3" "0"
28 $(call include-dependencies,$1,$2,$3)
29 else ifeq "$(phase)" "final"
30 # In the final phase, we also include the dependency files for
31 # everything else
32 $(call include-dependencies,$1,$2,$3)
33 endif
34 endif
35
36 $(call profEnd, dependencies($1,$2,$3))
37 endef
38
Something went wrong with that request. Please try again.