From: rrt Date: Wed, 24 Oct 2001 10:05:51 +0000 (+0000) Subject: [project @ 2001-10-24 10:05:51 by rrt] X-Git-Tag: Approximately_9120_patches~722 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=aa28d2d407ecd14edc2d37afa20a06e2bef702b2;hp=bf0256fa2f80b8f84acc40c1c8841da008a3c353 [project @ 2001-10-24 10:05:51 by rrt] Add install-docs target to top level. --- diff --git a/Makefile b/Makefile index 7f680ee..784574b 100644 --- a/Makefile +++ b/Makefile @@ -332,6 +332,15 @@ install :: fi; \ done +install-docs :: + @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \ + for i in $(filter-out $(ProjectsDontInstall), $(SUBDIRS)); do \ + if [ -d $$i ]; then \ + $(MAKE) -C $$i install-docs; \ + if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ; then true; else exit 1; fi; \ + fi; \ + done + # Turn off target.mk's rules for 'all', 'boot' and 'install'. NO_BOOT_TARGET=YES NO_ALL_TARGET=YES