1 # -----------------------------------------------------------------------------
3 # (c) 2009 The University of Glasgow
5 # This file is part of the GHC build system.
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
11 # -----------------------------------------------------------------------------
13 .PHONY: default_target
17 # Ideally we'd just include something to give us variables
18 # for paths and arguments to tools etc, and those set in mk/build.mk.
20 include $(TOP)/mk/config.mk
23 $(RM) -rf $(BIN_DIST_INST_SUBDIR)
25 $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
26 # --force-local makes tar not think that c:/foo refers to a remote file
27 $(TAR) --force-local -jxf $(BIN_DIST_TAR_BZ2)
28 ifeq "$(Windows)" "YES"
29 mv $(BIN_DIST_NAME) $(BIN_DIST_INST_DIR)
31 cd $(BIN_DIST_NAME) && ./configure --prefix=$(BIN_DIST_INST_DIR)
32 cd $(BIN_DIST_NAME) && make install
34 $(BIN_DIST_INST_DIR)/bin/ghc --make HelloWorld
36 $(CONTEXT_DIFF) output expected_output
39 $(RM) -rf $(BIN_DIST_INST_SUBDIR)
41 $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
43 # Ignore a load of other standard targets
44 install install-docs doc: