[rygel] build: Fix distcheck, hopefully



commit 06a98f140504e2023610423f8b56fd5fe1383942
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Oct 10 12:07:46 2012 +0200

    build: Fix distcheck, hopefully

 doc/reference/doc-build.am |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/doc/reference/doc-build.am b/doc/reference/doc-build.am
index 46ac7a6..3d2a568 100644
--- a/doc/reference/doc-build.am
+++ b/doc/reference/doc-build.am
@@ -40,8 +40,10 @@ clean-local:
 	rm -f gtkdoc/lib$(RYGEL_DOCBUILD_MODULE)*.txt
 	rm -f gtkdoc/lib$(RYGEL_DOCBUILD_MODULE).prerequisites
 
+RYGEL_GTKDOC_INSTALL_DIR = $(DESTDIR)$(datadir)/gtk-doc/html/lib$(RYGEL_DOCBUILD_MODULE)
+
 uninstall-hook:
-	rm -rf $(DESTDIR)$(datadir)/gtk-doc/html/lib$(RYGEL_DOCBUILD_MODULE)
+	rm -rf $(INSTALL_DIR)
 
 all: valadoc-gen gtkdoc-gen
 
@@ -49,9 +51,9 @@ endif
 
 # The chmod corrects the directory permissions so that distcheck can remove the installed files.
 install-data-hook: gtkdoc/html/index.html
-	$(MKDIR_P) $(DESTDIR)$(datadir)/gtk-doc/html/lib$(RYGEL_DOCBUILD_MODULE)
-	cp -d -R $(srcdir)/gtkdoc/html $(DESTDIR)$(datadir)/gtk-doc/html/lib$(RYGEL_DOCBUILD_MODULE)
-	chmod -R u+w $(DESTDIR)$(datadir)/gtk-doc/html/lib$(RYGEL_DOCBUILD_MODULE)
+	$(MKDIR_P) $(RYGEL_GTKDOC_INSTALL_DIR)
+	cp -d -R $(srcdir)/gtkdoc/html $(RYGEL_GTKDOC_INSTALL_DIR)
+	chmod -R u+w $(RYGEL_GTKDOC_INSTALL_DIR)
 
 
 EXTRA_DIST = $(RYGEL_GTKDOC_DOCS_XML) gtkdoc/html valadoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]