From 0c5cedfff9dbe678af849cbde09ea145534030b8 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 5 Feb 2001 15:05:48 -0500 Subject: [svn-r3354] Purpose: Fix for install-doc feature Description: I fixed the install-doc feature so that it actually works! (Imagine :-). Solution: It manually checks if the DOCDIR exists. If not, then it mkdir's it. Then it does the install of the appropriate docs. Platforms tested: Linux, Solaris --- config/conclude.in | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/config/conclude.in b/config/conclude.in index 197b778..b8ef185 100644 --- a/config/conclude.in +++ b/config/conclude.in @@ -61,9 +61,6 @@ $(includedir): $(bindir): mkdir $@ && chmod 755 $@ -$(DOCDIR): - mkdir $@ && chmod 755 $@ - ## Install the library, the public header files, and public programs. install: $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir) @for f in X $(PUB_LIB); do \ @@ -91,7 +88,12 @@ install: $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir) done ## Install the documents. -install-doc: $(PUB_DOCS) $(DOCDIR) +install-doc: $(PUB_DOCS) + @if test -d $(DOCDIR) ; then \ + :; \ + else \ + mkdir $(DOCDIR) && chmod 755 $(DOCDIR); \ + fi @for d in X $(SUBDIRS); do \ if test $$d != X; then \ (set -x; cd $$d && $(MAKE) $@) || exit 1; \ @@ -113,7 +115,7 @@ uninstall: @for f in libhdf5.settings $(LIB); do \ $(LT_UNINSTALL) $(libdir)/$$f; \ done - @if test "X$(PUB_HDR)" != X; then \ + @if test "X$(PUB_HDR)" != "X"; then \ set -x; cd $(includedir) && $(RM) $(PUB_HDR); \ fi @for f in X $(PUB_PROGS); do \ @@ -129,7 +131,7 @@ uninstall-doc: (set -x; cd $$d && $(MAKE) $@) || exit 1; \ fi; \ done - @if test "X$(PUB_DOCS)" != X; then \ + @if test "X$(PUB_DOCS)" != "X"; then \ set -x; cd $(DOCDIR) && $(RM) $(PUB_DOCS); \ fi -- cgit v0.12