changeset 2602:3a62619b24f2

Fix out-of-path (VPATH) builds.
author Matthias Andree <matthias.andree@gmx.de>
date Sat, 16 Sep 2017 18:23:08 +0200
parents 6af5b8db48bb
children 0f9a732f4205
files doc/Makefile.am
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/Makefile.am	Sun Sep 10 11:11:00 2017 +0100
+++ b/doc/Makefile.am	Sat Sep 16 18:23:08 2017 +0200
@@ -5,7 +5,7 @@
 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 @@
 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