a6f5f9af2e3218ec0bdb592985a242037589373f
[ghc-hetmet.git] / utils / Makefile
1 TOP=..
2 include $(TOP)/mk/boilerplate.mk
3
4 ifeq "$(MAKING_BIN_DIST)" "1"
5 # We're doing a binary-dist, descend into a subset of the dirs.
6 SUBDIRS = hp2ps unlit
7 else
8 ifeq "$(BootingFromHc)" "YES"
9 SUBDIRS = mkdependC mkdirhier runstdtest genapply genprimopcode ghc-pkg unlit
10 else
11 SUBDIRS = mkdependC mkdirhier runstdtest ghc-pkg hasktags hp2ps hsc2hs \
12           parallel prof unlit genprimopcode genapply runghc
13 endif
14 endif
15
16 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
17 SUBDIRS += touchy
18 endif
19
20 ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
21 # lndir doesn't build on Windows
22 SUBDIRS += lndir
23 endif
24
25 # Utils that we don't build by default:
26 #       nofib-analyse
27
28 # Utils that are old and/or bitrotted:
29 #       stat2resid
30 #       debugNCG
31 #       ext-core
32 #       genargs
33 #       heap-view
34 #       pvm
35 #       verbatim
36 #       ltx
37 #       hstags
38
39 # "heap-view" is not in the list because (a) it requires
40 #  a Haskell compiler (which you may not have yet), and (b) you are
41 #  unlikely to want it desperately.  It is easy to build once you have
42 #  a Haskell compiler and if you want it.
43
44 include $(TOP)/mk/target.mk
45
46 # genprimopcode is needed to boot in ghc/compiler...
47 ifneq "$(BootingFromHc)" "YES"
48 boot ::
49         $(MAKE) -C genprimopcode
50 endif
51