Fix out-of-path (VPATH) builds.
authorMatthias Andree <matthias.andree@gmx.de>
Sat, 16 Sep 2017 16:23:08 +0000 (18:23 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Sat, 16 Sep 2017 21:07:44 +0000 (23:07 +0200)
doc/Makefile.am

index 5c11942..3d9963a 100644 (file)
@@ -5,7 +5,7 @@ helpdir = @htmldir@
 EXTRA_DIST = docbook2html.sh docbook
 
 html/GuideIndex.html: docbook/GuideIndex.xml
-       rm -rf html; mkdir html; cp icons/* html/
+       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 \
@@ -17,7 +17,7 @@ html: html/GuideIndex.html
 install-data-hook: html
        if [ -x "$(GNOME_DOC_TOOL)" ]; then \
                $(MKDIR_P) "$(DESTDIR)$(helpdir)" || exit 1; \
-               cd html; for f in * ; do $(INSTALL_DATA) "$$f" "$(DESTDIR)$(helpdir)/$$f" ; done; \
+               cd $(srcdir)/html; for f in * ; do $(INSTALL_DATA) "$$f" "$(DESTDIR)$(helpdir)/$$f" ; done; \
                ln -s GuideIndex.html "$(DESTDIR)$(helpdir)/index.html" ; \
        fi