In bindisttest, don't try to configure/install the bindist on Windows
[ghc.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 INST_DIR = $(FPTOOLS_TOP_ABS)/bindisttest/installed
12
13 all:
14 $(RM) -rf installed
15 $(RM) -rf ghc*
16 $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
17 $(TAR) -jxf ../$(BIN_DIST_TARBALL)
18 ifeq "$(Windows)" "YES"
19 mv $(BIN_DIST_NAME) $(INST_DIR)
20 else
21 cd $(BIN_DIST_NAME) && ./configure --prefix=$(INST_DIR)
22 cd $(BIN_DIST_NAME) && make install
23 endif
24 $(INST_DIR)/bin/ghc --make HelloWorld
25 ./HelloWorld > output
26 $(CONTEXT_DIFF) output expected_output
27
28 clean distclean:
29 $(RM) -rf installed
30 $(RM) -rf ghc*
31 $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
32
33 # Ignore a load of other standard targets
34 install install-docs doc:
35 @:
36