From 20f0cead360b5192554cc20ab4dd93da47fddd40 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Mon, 16 Nov 2009 12:01:37 +0000 Subject: [PATCH] Add an install-docs target that emits a helpful diagnostic (#3662) --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e23db74..de5ee8a 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ endif include mk/custom-settings.mk # No need to update makefiles for these targets: -REALGOALS=$(filter-out binary-dist binary-dist-prep bootstrapping-files framework-pkg clean clean_% distclean maintainer-clean show help,$(MAKECMDGOALS)) +REALGOALS=$(filter-out binary-dist binary-dist-prep bootstrapping-files framework-pkg clean clean_% distclean maintainer-clean show help install-docs,$(MAKECMDGOALS)) # configure touches certain files even if they haven't changed. This # can mean a lot of unnecessary recompilation after a re-configure, so @@ -108,6 +108,12 @@ framework-pkg: $(MAKE) -C distrib/MacOS $@ endif +# install-docs is a historical target that isn't supported in GHC 6.12. See #3662. +install-docs: + @echo "The install-docs target is not supported in GHC 6.12.1 and later." + @echo "'make install' now installs everything, including documentation." + @exit 1 + # If the user says 'make A B', then we don't want to invoke two # instances of the rule above in parallel: .NOTPARALLEL: -- 1.7.10.4