summaryrefslogtreecommitdiff
path: root/data/Makefile.am
blob: ddb8d7fce54a4503f75fd7ea45a9f42c5b72a368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
gsettings_SCHEMAS = org.raspberrypi.maynard.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.maynard.gschema.xml.in.in

CLEANFILES =						\
	gschemas.compiled				\
	org.raspberrypi.maynard.gschema.valid	\
	$(gsettings_SCHEMAS)				\
	$(gsettings_SCHEMAS).in