Allow fast from top level makefile.
[ghc.git] / testsuite / Makefile
1 TOP = .
2
3 # If we're cleaning then we don't want to do all the GHC detection hardwork,
4 # and we certainly don't want to fail if GHC etc can't be found!
5 # However, we can't just put this conditional in boilerplate.mk, as
6 # some of the tests have a "clean" makefile target that relies on GHC_PKG
7 # being defined.
8 ifneq "$(MAKECMDGOALS)" "clean"
9 ifneq "$(MAKECMDGOALS)" "distclean"
10 ifneq "$(MAKECMDGOALS)" "maintainer-clean"
11
12 include $(TOP)/mk/boilerplate.mk
13
14 boot:
15 $(MAKE) -C $(TOP)/timeout all
16
17 all:
18 $(MAKE) -C $(TOP)/tests all
19
20 fast:
21 $(MAKE) -C $(TOP)/tests fast
22
23 endif
24 endif
25 endif
26
27 clean distclean maintainer-clean:
28 $(MAKE) -C $(TOP)/timeout $@
29 $(RM) -f mk/*.o mk/*.hi mk/ghc-config mk/ghc-config.exe mk/ghcconfig*.mk