view doc/Makefile.am @ 2901:ce889887354f

Avoid non-portable == for the test command The test command doesn't accept `==` as operator. It should be a single `=` for portable use. The `==` is a gnu extension. Note that the x-trick hasn't been needed for a long, long time. You can reliably write it with quotes: ``` if test "$gtk3" = yes; then ``` but I left that alone since it doesn't hurt other than being ugly.
author Rhialto The M <Rhialto@users.noreply.github.com>
date Sat, 06 Oct 2018 18:26:43 +0200
parents 4903104ff447
children
line wrap: on
line source

## Process this file with automake to produce Makefile.in.

helpdir = @htmldir@

EXTRA_DIST = docbook2html.sh docbook icons

html/GuideIndex.html: docbook/GuideIndex.xml
	rm -rf html; mkdir html; cp $(srcdir)/icons/* 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
	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" ; \
	fi

uninstall-hook:
	rm "$(DESTDIR)$(helpdir)/"*

clean-local:
	rm -rf html