Move the Makefile changes around so they don't cause test failures
[ghc.git] / testsuite / Makefile
1
2 TOP = .
3
4 # If we're cleaning then we don't want to do all the GHC detection hardwork,
5 # and we certainly don't want to fail if GHC etc can't be found!
6 # However, we can't just put this conditional in boilerplate.mk, as
7 # some of the tests have a "clean" makefile target that relies on GHC_PKG
8 # being defined.
9 ifneq "$(MAKECMDGOALS)" "clean"
10 ifneq "$(MAKECMDGOALS)" "distclean"
11
12 include $(TOP)/mk/boilerplate.mk
13
14 boot:
15 $(MAKE) -C $(TOP)/timeout all
16
17 all:
18 $(MAKE) -C $(TOP)/tests/ghc-regress all
19
20 endif
21 endif
22
23 clean distclean:
24 $(MAKE) -C $(TOP)/timeout $@
25