summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/commence.in2
-rw-r--r--config/conclude.in23
2 files changed, 21 insertions, 4 deletions
diff --git a/config/commence.in b/config/commence.in
index c212a37..1b32fa9 100644
--- a/config/commence.in
+++ b/config/commence.in
@@ -57,12 +57,14 @@ LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
## complains if it sees a reference to a variable which has never been
## defined. The main makefile is free to redefine these to something else.
DOCDIR=$(docdir)
+SUBDOCDIR=
LIB=
LIB_SRC=
LIB_OBJ=
PUB_HDR=
PUB_PROGS=
PUB_DOCS=
+PUB_SUBDOCS=
PROGS=
TEST_PROGS=
TEST_FLAGS=
diff --git a/config/conclude.in b/config/conclude.in
index b6d566c..a880637 100644
--- a/config/conclude.in
+++ b/config/conclude.in
@@ -115,14 +115,19 @@ install: $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir)
##
install-doc: $(PUB_DOCS)
@if test -d $(DOCDIR) ; then \
- :; \
+ :; \
else \
mkdir $(DOCDIR) && chmod 755 $(DOCDIR); \
fi
+ @if test -d $(SUBDOCDIR) ; then \
+ :; \
+ else \
+ mkdir $(SUBDOCDIR) && chmod 755 $(SUBDOCDIR); \
+ fi
@for d in X $(SUBDIRS); do \
- if test $$d != X; then \
- (set -x; cd $$d && $(MAKE) $@) || exit 1; \
- fi; \
+ if test $$d != X; then \
+ (set -x; cd $$d && $(MAKE) $@) || exit 1; \
+ fi; \
done
@for f in X $(PUB_DOCS); do \
if test $$f != X; then \
@@ -134,6 +139,16 @@ install-doc: $(PUB_DOCS)
fi; \
fi; \
done
+ @for f in X $(PUB_SUBDOCS); do \
+ if test $$f != X; then \
+ if test -f $$f; then \
+ (set -x; $(INSTALL_DATA) $$f $(SUBDOCDIR)/. || exit 1); \
+ else \
+ (set -x; $(INSTALL_DATA) $(srcdir)/$$f $(SUBDOCDIR)/. || \
+ exit 1); \
+ fi; \
+ fi; \
+ done
## Removes those things that `make install' (would have) installed.
##