Remove the gmp/Integer primops from the compiler
[ghc-hetmet.git] / mk / sub-makefile.mk
index 1d41bd1..989c0c9 100644 (file)
 
 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