[Sugar-devel] [PATCH sugar] Install gconf schema only when necessary
Daniel Narvaez
dwnarvaez at gmail.com
Tue Dec 25 16:03:16 EST 2012
From: Daniel Narvaez <dwnarvaez at gmail.com>
It takes a while, so this speeds up make
install a lot.
---
data/Makefile.am | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/data/Makefile.am b/data/Makefile.am
index 6a62d23..5215b57 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -56,11 +56,16 @@ schemadir = $(GCONF_SCHEMA_FILE_DIR)
schema_in_files = sugar.schemas.in
schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-install-data-local: $(schema_DATA)
+schema-stamp: $(schema_DATA)
if GCONF_SCHEMAS_INSTALL
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule sugar.schemas 2>&1 > /dev/null
+ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
+ $(GCONFTOOL) --makefile-install-rule sugar.schemas 2>&1 > /dev/null && \
+ touch schema-stamp
endif
+install-data-local: schema-stamp
+ @true
+
icondir = $(datadir)/icons/hicolor/scalable/apps
icon_DATA = sugar-xo.svg
--
1.7.10.4
More information about the Sugar-devel
mailing list