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.
9 include $(TOP)/mk/boilerplate.mk
11 ifeq "$(Windows)" "YES"
12 BIN_DIST_INST_SUBDIR = "install dir"
14 # I very much doubt that paths with spaces will work on Unix
15 BIN_DIST_INST_SUBDIR = installed
18 BIN_DIST_INST_DIR = $(FPTOOLS_TOP_ABS)/bindisttest/$(BIN_DIST_INST_SUBDIR)
21 $(RM) -rf $(BIN_DIST_INST_SUBDIR)
23 $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
24 $(TAR) -jxf $(BIN_DIST_TARBALL)
25 ifeq "$(Windows)" "YES"
26 mv $(BIN_DIST_NAME) $(BIN_DIST_INST_DIR)
28 cd $(BIN_DIST_NAME) && ./configure --prefix=$(BIN_DIST_INST_DIR)
29 cd $(BIN_DIST_NAME) && make install
31 $(BIN_DIST_INST_DIR)/bin/ghc --make HelloWorld
33 $(CONTEXT_DIFF) output expected_output
36 $(RM) -rf $(BIN_DIST_INST_SUBDIR)
38 $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
40 # Ignore a load of other standard targets
41 install install-docs doc: