From 5dfaaad710dd6c689c574fa0671978dc1f981e38 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 12 Jun 2002 18:21:49 -0500 Subject: [svn-r5616] Purpose: Bug Fix Description: If a platform doesn't have a GNU "install" program, then that install program might not support the "-d" option which creates directories for you. Solution: Use our "mkdirs" script instead to create a nest of subdirectories. Platforms tested: HP-UX, Linux --- MANIFEST | 1 + config/commence.in | 1 - config/conclude.in | 8 ++++---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MANIFEST b/MANIFEST index d996d8f..430a707 100644 --- a/MANIFEST +++ b/MANIFEST @@ -31,6 +31,7 @@ ./bin/iostats ./bin/locate_hdf4 ./bin/ltmain.sh +./bin/mkdirs ./bin/release ./bin/runtest _DO_NOT_DISTRIBUTE_ ./bin/snapshot diff --git a/config/commence.in b/config/commence.in index 705d38c..e9d75cc 100644 --- a/config/commence.in +++ b/config/commence.in @@ -28,7 +28,6 @@ CP=cp INSTALL=@INSTALL@ INSTALL_PROGRAM=@INSTALL_PROGRAM@ INSTALL_DATA=@INSTALL_DATA@ -INSTALL_DIR=$(INSTALL) -d -m 755 RUNSERIAL=@RUNSERIAL@ RUNPARALLEL=@RUNPARALLEL@ RUNTEST=$(RUNSERIAL) diff --git a/config/conclude.in b/config/conclude.in index a0f800c..695bfd6 100644 --- a/config/conclude.in +++ b/config/conclude.in @@ -66,13 +66,13 @@ check test _test: tests ## Make installation directories directories if they don't exist. $(libdir): - $(INSTALL_DIR) $@ + $(top_srcdir)/bin/mkdirs $@ $(includedir): - $(INSTALL_DIR) $@ + $(top_srcdir)/bin/mkdirs $@ $(bindir): - $(INSTALL_DIR) $@ + $(top_srcdir)/bin/mkdirs $@ ## Install the library, the public header files, and public programs. install: $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir) @@ -105,7 +105,7 @@ install-doc: $(PUB_DOCS) @if test -d $(DOCDIR) ; then \ :; \ else \ - $(INSTALL_DIR) $(DOCDIR); \ + mkdir $(DOCDIR) && chmod 755 $(DOCDIR); \ fi @for d in X $(SUBDIRS); do \ if test $$d != X; then \ -- cgit v0.12