Mercurial > geeqie
diff doc/Makefile.am @ 1796:a210f58165ed
test gnome-doc-tool in configure
author | nadvornik |
---|---|
date | Sun, 07 Feb 2010 13:16:35 +0000 |
parents | a7f7b9c0050c |
children |
line wrap: on
line diff
--- a/doc/Makefile.am Sun Feb 07 12:44:55 2010 +0000 +++ b/doc/Makefile.am Sun Feb 07 13:16:35 2010 +0000 @@ -8,13 +8,20 @@ EXTRA_DIST = docbook2html.sh docbook html/GuideIndex.html: docbook/GuideIndex.xml - rm -rf html; mkdir html && gnome-doc-tool html -o html $(srcdir)/docbook/GuideIndex.xml + rm -rf html; mkdir html + if [ -x "$(GNOME_DOC_TOOL)" ]; then \ + "$(GNOME_DOC_TOOL)" html -o html $(srcdir)/docbook/GuideIndex.xml ; \ + else \ + echo "gnome-doc-tool not found, html is not built" ; \ + fi html: html/GuideIndex.html install-data-hook: html - cd html; for f in * ; do $(INSTALL_DATA) "$$f" "$(DESTDIR)$(helpdir)/$$f" ; done - ln -s GuideIndex.html "$(DESTDIR)$(helpdir)/index.html" + if [ -x "$(GNOME_DOC_TOOL)" ]; then \ + cd html; for f in * ; do $(INSTALL_DATA) "$$f" "$(DESTDIR)$(helpdir)/$$f" ; done; \ + ln -s GuideIndex.html "$(DESTDIR)$(helpdir)/index.html" ; \ + fi uninstall-hook: rm "$(DESTDIR)$(helpdir)/"*