summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am25
1 files changed, 25 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..f7378ef
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,25 @@
+gsettings_SCHEMAS = org.raspberrypi.weston-gtk-shell.gschema.xml
+
+@INTLTOOL_XML_NOMERGE_RULE@
+
+%.gschema.xml.in: %.gschema.xml.in.in Makefile
+ $(AM_V_GEN) sed -e 's|@GETTEXT_PACKAGE[@]|$(GETTEXT_PACKAGE)|g' \
+ $< > $@ || rm $@
+
+@GSETTINGS_RULES@
+
+# We need to compile schemas at make time
+# to run from source tree
+gschemas.compiled: $(gsettings_SCHEMAS:.xml=.valid)
+ $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --targetdir=. .
+
+all-local: gschemas.compiled
+
+EXTRA_DIST = \
+ org.raspberrypi.weston-gtk-shell.gschema.xml.in.in
+
+CLEANFILES = \
+ gschemas.compiled \
+ org.raspberrypi.weston-gtk-shell.gschema.valid \
+ $(gsettings_SCHEMAS) \
+ $(gsettings_SCHEMAS).in