summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/commence.in2
-rw-r--r--config/conclude.in32
2 files changed, 34 insertions, 0 deletions
diff --git a/config/commence.in b/config/commence.in
index 99d9f73..fdc5b6d 100644
--- a/config/commence.in
+++ b/config/commence.in
@@ -34,6 +34,7 @@ exec_prefix=@exec_prefix@
bindir=@bindir@
libdir=@libdir@
includedir=@includedir@
+docdir=@exec_prefix@/doc
PUB_LIB=$(LIB)
## Shared libraries
@@ -49,6 +50,7 @@ LT_UNINSTALL=$(LT) --mode=uninstall $(RM)
## Optional variables. We must declare them here because Irix pmake
## 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)
LIB=
LIB_SRC=
LIB_OBJ=
diff --git a/config/conclude.in b/config/conclude.in
index 0405219..7e504c9 100644
--- a/config/conclude.in
+++ b/config/conclude.in
@@ -55,6 +55,9 @@ $(includedir):
$(bindir):
mkdir $@ && chmod 755 $@
+$(DOCDIR):
+ mkdir $@ && chmod 755 $@
+
## Install the library, the public header files, and programs.
install: $(PUB_LIB) $(PUB_HDR) $(PROGS) $(libdir) $(includedir) $(bindir)
@for f in X $(PUB_LIB); do \
@@ -81,6 +84,24 @@ install: $(PUB_LIB) $(PUB_HDR) $(PROGS) $(libdir) $(includedir) $(bindir)
fi; \
done
+## Install the documents.
+install-doc: $(PUB_DOCS) $(DOCDIR)
+ @for d in X $(SUBDIRS); do \
+ 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 \
+ if test -f $$f; then \
+ (set -x; $(INSTALL_DATA) $$f $(DOCDIR)/. || exit 1); \
+ else \
+ (set -x; $(INSTALL_DATA) $(srcdir)/$$f $(DOCDIR)/. || \
+ exit 1); \
+ fi; \
+ fi; \
+ done
+
## Removes those things that `make install' (would have) installed.
uninstall:
@for f in libhdf5.settings $(LIB); do \
@@ -95,6 +116,17 @@ uninstall:
fi; \
done
+## Removes those things that `make install-doc' (would have) installed.
+uninstall-doc:
+ @for d in X $(SUBDIRS); do \
+ if test $$d != X; then \
+ (set -x; cd $$d && $(MAKE) $@) || exit 1; \
+ fi; \
+ done
+ @if test "X$(PUB_DOCS)" != X; then \
+ set -x; cd $(DOCDIR) && $(RM) $(PUB_DOCS); \
+ fi
+
## Removes temporary files without removing the final target files. That is,
## remove things like object files but not libraries or executables.
##