build documentation with gnome-doc-tool in makefile
authorVladimir Nadvornik <nadvornik@suse.cz>
Fri, 27 Nov 2009 23:27:35 +0000 (23:27 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Fri, 27 Nov 2009 23:27:35 +0000 (23:27 +0000)
Makefile.am
doc/Makefile.am

index 49ab0d7..610c55a 100644 (file)
@@ -30,4 +30,4 @@ EXTRA_DIST = \
 dist-hook: geeqie.spec
        cp $(top_builddir)/geeqie.spec $(distdir)
 
-
+DISTCLEANFILES = config.report
index b5cc092..797e577 100644 (file)
@@ -2,4 +2,23 @@
 
 helpdir = @htmldir@
 
+# empty help_DATA just installs the directory
+help_DATA = 
+
 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
+
+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"
+       
+uninstall-hook:
+       rm "$(DESTDIR)$(helpdir)/"*
+
+clean-local:
+       rm -rf html
+