From f6bc74797280df00a57bddaaeebd21b4c79fdee9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 5 Feb 2001 15:07:38 -0500 Subject: [svn-r3355] Purpose: Fix Description: Fixed the install-doc feature. Solution: It manually tests if the appropriate doc directory is there. If not, then it mkdir's it and proceeds to the subdirectory installs. Platforms tested: Linux, Solaris --- doc/Makefile.in | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/doc/Makefile.in b/doc/Makefile.in index 9857cd3..10fc2eb 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -27,17 +27,19 @@ tests TAGS dep depend: (cd $$d && $(MAKE) $@) || exit 1; \ done -$(docdir): - mkdir $@ && chmod 755 $@ - -install-doc: $(docdir) - @@SETX@; for d in $(SUBDIRS); do \ - (cd $$d && $(MAKE) $@) || exit 1; \ +install-doc: + @if test -d $(DOCDIR) ; then \ + :; \ + else \ + mkdir $(DOCDIR) && chmod 755 $(DOCDIR); \ + fi + @@SETX@; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ done uninstall-doc: - @@SETX@; for d in $(SUBDIRS); do \ - (cd $$d && $(MAKE) $@) || exit 1; \ + @@SETX@; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ done .PHONY: all lib progs test _test install uninstall dep depend clean \ -- cgit v0.12