diff options
author | Robb Matzke <matzke@llnl.gov> | 1997-09-15 22:20:04 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1997-09-15 22:20:04 (GMT) |
commit | 14af56fff4aa89031d0e467de24077fc070245ce (patch) | |
tree | d84fbd9ce793be0a5ff7dfd7df0183f173d82619 /config | |
parent | 6d698b63c24116e102eacc86f4b0d2d29adbfa8c (diff) | |
download | hdf5-14af56fff4aa89031d0e467de24077fc070245ce.zip hdf5-14af56fff4aa89031d0e467de24077fc070245ce.tar.gz hdf5-14af56fff4aa89031d0e467de24077fc070245ce.tar.bz2 |
[svn-r86] install fails with a better error message
Diffstat (limited to 'config')
-rw-r--r-- | config/conclude.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config/conclude.in b/config/conclude.in index cfa77ec..b556c11 100644 --- a/config/conclude.in +++ b/config/conclude.in @@ -31,13 +31,16 @@ test: $(PROGS) # Install the library, the public header files, and programs. install: $(LIB) $(PUB_HDR) $(PROGS) @if test -n "$(LIB)"; then \ - (set -x; $(INSTALL_DATA) $(LIB) $(libdir) || exit 1); \ + test -d $(libdir) || mkdir $(libdir) || exit 1; \ + (set -x; $(INSTALL_DATA) $(LIB) $(libdir)/. || exit 1); \ fi @if test -n "$(PUB_HDR)"; then \ - (set -x; $(INSTALL_DATA) $(PUB_HDR) $(includedir) || exit 1); \ + test -d $(includedir) || mkdir $(includedir) || exit 1; \ + (set -x; $(INSTALL_DATA) $(PUB_HDR) $(includedir)/. || exit 1); \ fi @if test -n "$(PROGS)"; then \ - (set -x; $(INSTALL_PROGRAM) $(PROGS) $(bindir) || exit 1); \ + test -d $(bindir) || mkdir $(bindir) || exit 1; \ + (set -x; $(INSTALL_PROGRAM) $(PROGS) $(bindir)/. || exit 1); \ fi # Removes those things that `make install' (would have) installed. |