X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fsub-makefile.mk;h=989c0c91b9ab93052cdc7c0414f4414dcc8a9267;hb=d874b8c93b737bf26c949ef7bf19fc43e335bd1f;hp=1d41bd101a94c622e951c90fc95662d24d615c13;hpb=61ef1764bf342f90480602770b43ec3ae768f7f1;p=ghc-hetmet.git diff --git a/mk/sub-makefile.mk b/mk/sub-makefile.mk index 1d41bd1..989c0c9 100644 --- a/mk/sub-makefile.mk +++ b/mk/sub-makefile.mk @@ -14,13 +14,15 @@ TOPMAKE = $(MAKE) -C $(TOP) -default : - +$(TOPMAKE) all_$(dir) +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: -# all comes first, we want it to be the default target STD_TARGETS = all clean distclean maintainer_clean install html ps pdf # The + tells make that we're recursively invoking make, otherwise 'make -j2' @@ -28,7 +30,16 @@ 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 help $(STD_TARGETS) $(SPEC_TARGETS),$(MAKECMDGOALS)) .PHONY: $(OTHERTARGETS) $(OTHERTARGETS): +$(TOPMAKE) $(dir)/$@ + +.PHONY: help +help : sub-help + +.PHONY: sub-help +sub-help : + @echo "You are in subdirectory \"$(dir)\"." + @echo "Useful targets in this directory:" + @cat $(TOP)/SUBMAKEHELP