## Process this file with automake to produce Makefile.in.
helpdir = @htmldir@
-help_DATA = \
- collections.html \
- credits.html \
- faq.html \
- gnu_fdl.txt \
- image_management_copy_move.html \
- image_management_delete.html \
- image_management_external_editing.html \
- image_management.html \
- image_management_rename.html \
- image_presentation_fullscreen.html \
- image_presentation.html \
- image_presentation_slideshow.html \
- image_search_finding_duplicates.html \
- image_search.html \
- image_search_search.html \
- index.html \
- introduction.html \
- main_window_file_pane.html \
- main_window_folder_pane.html \
- main_window.html \
- main_window_image_pane.html \
- main_window_layout.html \
- main_window_menus.html \
- main_window_navigation.html \
- main_window_status_bar.html \
- options_advanced.html \
- options_editor_commands.html \
- options_filtering.html \
- options_general.html \
- options_hidden.html \
- options.html \
- options_image.html \
- options_window.html \
- other_windows.html \
- other_windows_image_properties.html \
- other_windows_image_window.html \
- printing.html \
- reference_command_line.html \
- reference.html \
- reference_keyboard_shortcuts.html \
- reference_management.html \
- reference_thumbnails.html \
- sidebars_exif.html \
- sidebars.html \
- sidebars_keywords.html \
- sidebars_sort_manager.html \
- template.html
-EXTRA_DIST = $(help_DATA) template.html
+EXTRA_DIST = docbook2html.sh docbook icons
+
+html/GuideIndex.html: docbook/GuideIndex.xml
+ rm -rf html; mkdir html; cp $(srcdir)/icons/* html/; ./create-doxygen-lua-api.sh
+ if [ -x "$(GNOME_DOC_TOOL)" ]; then \
+ "$(GNOME_DOC_TOOL)" html -i -o html/ $(srcdir)/docbook/GuideIndex.xml ; \
+ else \
+ echo "yelp-tools not found, html is not built" ; \
+ fi
+
+html: html/GuideIndex.html
+
+install-data-hook: html
+ if [ -x "$(GNOME_DOC_TOOL)" ]; then \
+ $(MKDIR_P) "$(DESTDIR)$(helpdir)" || exit 1; \
+ cd $(srcdir)/html; for f in * ; do $(INSTALL_DATA) "$$f" "$(DESTDIR)$(helpdir)/$$f" ; done; \
+ ln -s -f GuideIndex.html "$(DESTDIR)$(helpdir)/index.html" ; \
+ $(MKDIR_P) "$(DESTDIR)$(helpdir)/lua-api" || exit 1; \
+ cd ./lua-api/html; for f in * ; do $(INSTALL_DATA) "$$f" "$(DESTDIR)$(helpdir)/lua-api/$$f" ; done; \
+ fi
+
+uninstall-hook:
+ rm -r "$(DESTDIR)$(helpdir)/"*
+
+clean-local:
+ rm -rf html