Change references to the old BIN_DIST_TARBALL to the new BIN_DIST_TAR_BZ2
[ghc-hetmet.git] / bindisttest / Makefile
1
2 .PHONY: default_target
3
4 default_target: all
5
6 # Ideally we'd just include something to give us variables
7 # for paths and arguments to tools etc, and those set in mk/build.mk.
8 TOP=..
9 include $(TOP)/mk/boilerplate.mk
10
11 all:
12         $(RM) -rf $(BIN_DIST_INST_SUBDIR)
13         $(RM) -rf ghc*
14         $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
15         $(TAR) -jxf $(BIN_DIST_TAR_BZ2)
16 ifeq "$(Windows)" "YES"
17         mv $(BIN_DIST_NAME) $(BIN_DIST_INST_DIR)
18 else
19         cd $(BIN_DIST_NAME) && ./configure --prefix=$(BIN_DIST_INST_DIR)
20         cd $(BIN_DIST_NAME) && make install
21 endif
22         $(BIN_DIST_INST_DIR)/bin/ghc --make HelloWorld
23         ./HelloWorld > output
24         $(CONTEXT_DIFF) output expected_output
25
26 clean distclean:
27         $(RM) -rf $(BIN_DIST_INST_SUBDIR)
28         $(RM) -rf ghc*
29         $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
30
31 # Ignore a load of other standard targets
32 install install-docs doc:
33         @:
34