From: simonmar Date: Mon, 11 Mar 2002 10:55:11 +0000 (+0000) Subject: [project @ 2002-03-11 10:55:11 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~2290 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=b274236c5d15dcfff7fe73863c110329c170754e [project @ 2002-03-11 10:55:11 by simonmar] Re-instate ifeq "$(way)" "" around the rule for recursively descending into SUBDIRS that I removed a while back. This will fix a bug in nofib whereby if NoFibWays is set to anything then we do O(n^2) traversals of the tree, but it also means you can't sit at the top of the tree and say 'make way=p' to just build profiling libraries (which was the reason I made the change in the first place). We'll have to find another way to do this. --- diff --git a/mk/target.mk b/mk/target.mk index 1e9a4d4..620b51a 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -1100,6 +1100,7 @@ endif # the --no-print-directory flag which is passed to recursive # invocations of make. # +ifeq "$(way)" "" ifneq "$(SUBDIRS)" "" # we override the 'boot', 'all' and 'install' targets in the top @@ -1146,6 +1147,7 @@ $(ALL_TARGET) docs runtests $(BOOT_TARGET) TAGS clean distclean mostlyclean main @echo "------------------------------------------------------------------------" endif +endif # # Selectively building subdirectories.