Makefile 637 Bytes
Newer Older
1
TOP = .
2 3 4 5 6 7 8 9 10

# If we're cleaning then we don't want to do all the GHC detection hardwork,
# and we certainly don't want to fail if GHC etc can't be found!
# However, we can't just put this conditional in boilerplate.mk, as
# some of the tests have a "clean" makefile target that relies on GHC_PKG
# being defined.
ifneq "$(MAKECMDGOALS)" "clean"
ifneq "$(MAKECMDGOALS)" "distclean"

11
include $(TOP)/mk/boilerplate.mk
12

Ian Lynagh's avatar
Ian Lynagh committed
13 14 15
boot:
	$(MAKE) -C $(TOP)/timeout all

Ian Lynagh's avatar
Ian Lynagh committed
16
all:
17
	$(MAKE) -C $(TOP)/tests all
18

19 20 21
endif
endif

Simon Marlow's avatar
Simon Marlow committed
22
clean distclean maintainer-clean:
Ian Lynagh's avatar
Ian Lynagh committed
23
	$(MAKE) -C $(TOP)/timeout $@
24
	$(RM) -f mk/*.o mk/*.hi mk/ghc-config mk/ghc-config.exe mk/ghcconfig*.mk