diff options
author | Albert Cheng <acheng@hdfgroup.org> | 1999-10-15 21:23:47 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 1999-10-15 21:23:47 (GMT) |
commit | 6474c9dfdb971b45ca99ea38a6a6d117771cdc57 (patch) | |
tree | bf2b6c16ea2cc3250724b523a1186d7c3049d35a /config/conclude.in | |
parent | 4c93f8deb4b9c8cc42a2ab41ec8e32d65d9bc407 (diff) | |
download | hdf5-6474c9dfdb971b45ca99ea38a6a6d117771cdc57.zip hdf5-6474c9dfdb971b45ca99ea38a6a6d117771cdc57.tar.gz hdf5-6474c9dfdb971b45ca99ea38a6a6d117771cdc57.tar.bz2 |
[svn-r1764] Added the install-doc and uninstall-doc targets.
Diffstat (limited to 'config/conclude.in')
-rw-r--r-- | config/conclude.in | 32 |
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. ## |