From 14af56fff4aa89031d0e467de24077fc070245ce Mon Sep 17 00:00:00 2001 From: Robb Matzke Date: Mon, 15 Sep 1997 17:20:04 -0500 Subject: [svn-r86] install fails with a better error message --- config/conclude.in | 9 ++++++--- 1 file 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. -- cgit v0.12