From e860673f10fd166bb28c78f0535b0eac635f4aa9 Mon Sep 17 00:00:00 2001 From: Bharath Acharya Date: Tue, 12 Aug 2008 04:19:31 +0000 Subject: Have a check for OS_WIN32 and handle the schema data differently. make 2008-08-12 Bharath Acharya * Makefile.am: Have a check for OS_WIN32 and handle the schema * data differently. make install error on win32. svn path=/trunk/; revision=35961 --- plugins/templates/Makefile.am | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'plugins/templates/Makefile.am') diff --git a/plugins/templates/Makefile.am b/plugins/templates/Makefile.am index 9369c0293d..5a36917fa2 100644 --- a/plugins/templates/Makefile.am +++ b/plugins/templates/Makefile.am @@ -27,12 +27,25 @@ schema_DATA = $(schema_in_files:.schemas.in=.schemas) @INTLTOOL_SCHEMAS_RULE@ +if OS_WIN32 install-data-local: - if test -z "$(DESTDIR)" ; then \ - for p in $(schema_DATA) ; do \ - GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p; \ - done \ + if test -z "$(DESTDIR)" ; then \ + for p in $(schema_DATA) ; do \ + (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \ + echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \ + cmd /c _temp.bat; \ + rm _temp.bat; \ + done \ fi +else +install-data-local: + if test -z "$(DESTDIR)" ; then \ + for p in $(schema_DATA) ; do \ + GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \ + $(GCONFTOOL) --makefile-install-rule $$p; \ + done \ + fi +endif EXTRA_DIST = org-gnome-templates.eplug.xml \ $(schema_in_files) \ -- cgit