Bug #638615: Fix schema install with DESTDIR

Patch by Jim Radford:


When doing

  make install DESTDIR=/tmp/gnucash

the install fails because GCONF_SCHEMA_CONFIG_SOURCE doesn't end up using
DESTDIR (and it's non-trivial because of the xml:: prefix).  The attached patch
fixes it for me but is non-ideal because it hard codes the value of
GCONF_SCHEMA_CONFIG_SOURCE using GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20065 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2011-01-11 20:39:53 +00:00
parent f70cb1fe2f
commit 9f454a8dc7

View File

@ -12,10 +12,10 @@ CLEANFILES = $(schema_DATA)
install-data-local:
if GCONF_SCHEMAS_INSTALL
-mkdir -p $(DESTDIR)$(GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY)
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schema_DATA)
GCONF_CONFIG_SOURCE=xml::$(DESTDIR)$(GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY) $(GCONFTOOL) --makefile-install-rule $(schema_DATA)
endif
uninstall-local:
if GCONF_SCHEMAS_INSTALL
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $(schema_DATA)
GCONF_CONFIG_SOURCE=xml::$(DESTDIR)$(GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY) $(GCONFTOOL) --makefile-uninstall-rule $(schema_DATA)
endif