summaryrefslogtreecommitdiff
path: root/mk/sub-makefile.mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-06-15 13:58:01 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-06-15 13:58:01 +0000
commit971ccfbbc3d81e8c2f24c985b22bc93748e865e0 (patch)
treef5c1e07a43e52457f2133a0f84bec2c782aa0652 /mk/sub-makefile.mk
parent9aa52fb1216e0bf527638d3e8b34ba072687afd0 (diff)
downloadhaskell-971ccfbbc3d81e8c2f24c985b22bc93748e865e0.tar.gz
Add 'make fast' which omits deps (for a library) and some of the phases
Diffstat (limited to 'mk/sub-makefile.mk')
-rw-r--r--mk/sub-makefile.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/sub-makefile.mk b/mk/sub-makefile.mk
index 031d62a1b7..a1d1e9b608 100644
--- a/mk/sub-makefile.mk
+++ b/mk/sub-makefile.mk
@@ -16,6 +16,10 @@ TOPMAKE = $(MAKE) -C $(TOP)
default: all
+fast :
+ +$(TOPMAKE) all_$(dir) $(dir)_dist-install_NO_BUILD_DEPS=YES \
+ OMIT_PHASE_1=YES OMIT_PHASE_2=YES OMIT_PHASE_3=YES
+
# We must not execute multiple recursive invocations of make in parallel.
.NOTPARALLEL:
@@ -26,7 +30,7 @@ STD_TARGETS = all clean distclean maintainer_clean install html ps pdf
$(STD_TARGETS):
+$(TOPMAKE) $@_$(dir)
-OTHERTARGETS=$(filter-out $(STD_TARGETS) $(SPEC_TARGETS),$(MAKECMDGOALS))
+OTHERTARGETS=$(filter-out fast $(STD_TARGETS) $(SPEC_TARGETS),$(MAKECMDGOALS))
.PHONY: $(OTHERTARGETS)
$(OTHERTARGETS):
+$(TOPMAKE) $(dir)/$@