[svn-r1764] Added the install-doc and uninstall-doc targets.

This commit is contained in:
Albert Cheng 1999-10-15 16:23:47 -05:00
parent 4c93f8deb4
commit 6474c9dfdb
2 changed files with 34 additions and 0 deletions

View File

@ -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=

View File

@ -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.
##