summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/commence.in1
-rw-r--r--config/conclude.in17
2 files changed, 13 insertions, 5 deletions
diff --git a/config/commence.in b/config/commence.in
index 4303cbe..9eac277 100644
--- a/config/commence.in
+++ b/config/commence.in
@@ -34,6 +34,7 @@ exec_prefix=@exec_prefix@
bindir=@bindir@
libdir=@libdir@
includedir=@includedir@
+PUB_LIB=$(LIB)
# Shared libraries
LT=$(top_builddir)/libtool
diff --git a/config/conclude.in b/config/conclude.in
index 28dfc36..51cf691 100644
--- a/config/conclude.in
+++ b/config/conclude.in
@@ -44,15 +44,23 @@ check test _test: tests
fi; \
done;
+# Make installation directories directories if they don't exist.
+$(libdir):
+ mkdir $@ && chmod 755 $@
+
+$(includedir):
+ mkdir $@ && chmod 755 $@
+
+$(bindir):
+ mkdir $@ && chmod 755 $@
+
# Install the library, the public header files, and programs.
-install: $(LIB) $(PUB_HDR) $(PROGS)
- @test -d $(libdir) || mkdir $(libdir)
- @for f in X $(LIB); do \
+install: $(PUB_LIB) $(PUB_HDR) $(PROGS) $(libdir) $(includedir) $(bindir)
+ @for f in X $(PUB_LIB); do \
if test $$f != X; then \
($(LT_INSTALL_LIB) $$f $(libdir)/. || exit 1); \
fi; \
done
- @test -d $(includedir) || mkdir $(includedir)
@for f in X $(PUB_HDR); do \
if test $$f != X; then \
if test -f $$f; then \
@@ -63,7 +71,6 @@ install: $(LIB) $(PUB_HDR) $(PROGS)
fi; \
fi; \
done
- @test -d $(bindir) || mkdir $(bindir)
@for f in X $(PROGS); do \
if test $$f != X; then \
($(LT_INSTALL_PROG) $$f $(bindir)/. || exit 1); \