Add network submodule.
[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 .PHONY: all boot test verbose accept fast slow list_broken
15
16 boot:
17 $(MAKE) -C $(TOP)/timeout all
18
19 all:
20 $(MAKE) -C $(TOP)/tests all
21
22 test:
23 $(MAKE) -C $(TOP)/tests test
24
25 verbose:
26 $(MAKE) -C $(TOP)/tests verbose
27
28 accept:
29 $(MAKE) -C $(TOP)/tests accept
30
31 fast fasttest:
32 $(MAKE) -C $(TOP)/tests fast
33
34 slow slowtest:
35 $(MAKE) -C $(TOP)/tests slow
36
37 list_broken:
38 $(MAKE) -C $(TOP)/tests list_broken
39
40 endif
41 endif
42 endif
43
44 clean distclean maintainer-clean:
45 $(MAKE) -C $(TOP)/timeout $@
46 $(RM) -f mk/*.o
47 $(RM) -f mk/*.hi
48 $(RM) -f mk/ghcconfig*.mk
49 $(RM) -f mk/ghc-config mk/ghc-config.exe
50 $(RM) -f driver/*.pyc