summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-10-15 21:23:47 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-10-15 21:23:47 (GMT)
commit6474c9dfdb971b45ca99ea38a6a6d117771cdc57 (patch)
treebf2b6c16ea2cc3250724b523a1186d7c3049d35a /config
parent4c93f8deb4b9c8cc42a2ab41ec8e32d65d9bc407 (diff)
downloadhdf5-6474c9dfdb971b45ca99ea38a6a6d117771cdc57.zip
hdf5-6474c9dfdb971b45ca99ea38a6a6d117771cdc57.tar.gz
hdf5-6474c9dfdb971b45ca99ea38a6a6d117771cdc57.tar.bz2
[svn-r1764] Added the install-doc and uninstall-doc targets.
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.
##