summaryrefslogtreecommitdiffstats
path: root/config/conclude.in
diff options
context:
space:
mode:
Diffstat (limited to 'config/conclude.in')
-rw-r--r--config/conclude.in32
1 files changed, 32 insertions, 0 deletions
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.
##