Fix #3741, simplifying things in the process
[ghc-hetmet.git] / compiler / Makefile
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 dir = compiler
14 TOP = ..
15 SPEC_TARGETS = 1 2 3
16 include $(TOP)/mk/sub-makefile.mk
17
18 FAST_MAKE_OPTS += compiler_stage1_NO_BUILD_DEPS=YES compiler_stage2_NO_BUILD_DEPS=YES compiler_stage3_NO_BUILD_DEPS=YES
19
20 .PHONY: 1 2 3
21
22 1:
23         +$(TOPMAKE) stage=1 all_ghc_stage1 $(FAST_MAKE_OPTS)
24
25 2:
26         +$(TOPMAKE) stage=2 all_ghc_stage2 $(FAST_MAKE_OPTS)
27
28 3:
29         +$(TOPMAKE) stage=3 all_ghc_stage3 $(FAST_MAKE_OPTS)
30
31 .PHONY: extra-help
32 help : extra-help
33 extra-help :
34         @echo "  make 1"
35         @echo "  make 2"
36         @echo "  make 3"
37         @echo
38         @echo "     Build the stage 1, 2 or 3 GHC respectively, omitting dependencies"
39         @echo "     and initial phases for speed."