2005-09-27 15:10:09 -07:00
|
|
|
|
|
|
|
if BUILD_DOCS
|
|
|
|
|
|
|
|
# install documentation
|
|
|
|
docdir = $(datadir)/$(PACKAGE)/doc
|
|
|
|
|
|
|
|
all-local: doc-build.stamp
|
|
|
|
|
|
|
|
# rule to remove all old created files
|
|
|
|
doc-prepare.stamp:
|
|
|
|
@if test x"html" != x ; then \
|
|
|
|
rm -rf html/ latex/ man/ xml/; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
# rule to build documentation and copy necessary files
|
|
|
|
doc-build.stamp: doc-prepare.stamp
|
|
|
|
@doxygen
|
|
|
|
@cp img/*.png html/
|
|
|
|
|
|
|
|
# rule to install the documentation in $(docdir)
|
|
|
|
install-data-local:
|
2005-09-29 00:56:42 -07:00
|
|
|
@if ! test -d "$(DESTDIR)$(datadir)/$(PACKAGE)"; then \
|
|
|
|
mkdir "$(DESTDIR)$(datadir)/$(PACKAGE)"; \
|
2005-09-27 15:10:09 -07:00
|
|
|
fi
|
2005-09-29 00:56:42 -07:00
|
|
|
@if ! test -d "$(DESTDIR)$(docdir)"; then \
|
|
|
|
mkdir "$(DESTDIR)$(docdir)"; \
|
2005-09-27 15:10:09 -07:00
|
|
|
fi
|
2005-09-29 00:56:42 -07:00
|
|
|
@cp -pr html/ man/ latex/ xml/ "$(DESTDIR)$(docdir)"
|
2005-09-27 15:10:09 -07:00
|
|
|
|
|
|
|
# rule to uninstall the documentation
|
|
|
|
uninstall-local:
|
|
|
|
rm -rf $(docdir)
|
|
|
|
|
|
|
|
endif
|