mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r3354] Purpose:
Fix for install-doc feature Description: I fixed the install-doc feature so that it actually works! (Imagine :-). Solution: It manually checks if the DOCDIR exists. If not, then it mkdir's it. Then it does the install of the appropriate docs. Platforms tested: Linux, Solaris
This commit is contained in:
parent
4ad78c82e2
commit
0c5cedfff9
@ -61,9 +61,6 @@ $(includedir):
|
||||
$(bindir):
|
||||
mkdir $@ && chmod 755 $@
|
||||
|
||||
$(DOCDIR):
|
||||
mkdir $@ && chmod 755 $@
|
||||
|
||||
## Install the library, the public header files, and public programs.
|
||||
install: $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir)
|
||||
@for f in X $(PUB_LIB); do \
|
||||
@ -91,7 +88,12 @@ install: $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir)
|
||||
done
|
||||
|
||||
## Install the documents.
|
||||
install-doc: $(PUB_DOCS) $(DOCDIR)
|
||||
install-doc: $(PUB_DOCS)
|
||||
@if test -d $(DOCDIR) ; then \
|
||||
:; \
|
||||
else \
|
||||
mkdir $(DOCDIR) && chmod 755 $(DOCDIR); \
|
||||
fi
|
||||
@for d in X $(SUBDIRS); do \
|
||||
if test $$d != X; then \
|
||||
(set -x; cd $$d && $(MAKE) $@) || exit 1; \
|
||||
@ -113,7 +115,7 @@ uninstall:
|
||||
@for f in libhdf5.settings $(LIB); do \
|
||||
$(LT_UNINSTALL) $(libdir)/$$f; \
|
||||
done
|
||||
@if test "X$(PUB_HDR)" != X; then \
|
||||
@if test "X$(PUB_HDR)" != "X"; then \
|
||||
set -x; cd $(includedir) && $(RM) $(PUB_HDR); \
|
||||
fi
|
||||
@for f in X $(PUB_PROGS); do \
|
||||
@ -129,7 +131,7 @@ uninstall-doc:
|
||||
(set -x; cd $$d && $(MAKE) $@) || exit 1; \
|
||||
fi; \
|
||||
done
|
||||
@if test "X$(PUB_DOCS)" != X; then \
|
||||
@if test "X$(PUB_DOCS)" != "X"; then \
|
||||
set -x; cd $(DOCDIR) && $(RM) $(PUB_DOCS); \
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user