Add a bindisttest directory
[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 cd $(BIN_DIST_NAME) && ./configure --prefix=$(INST_DIR)
19 cd $(BIN_DIST_NAME) && make install
20 $(INST_DIR)/bin/ghc --make HelloWorld
21 ./HelloWorld > output
22 $(CONTEXT_DIFF) output expected_output
23
24 clean distclean:
25 $(RM) -rf installed
26 $(RM) -rf ghc*
27 $(RM) HelloWorld HelloWorld.o HelloWorld.hi output
28
29 # Ignore a load of other standard targets
30 install install-docs doc:
31 @:
32