mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gsettings m4: check for .xml in src/builddir
This checks for the .gschema.xml file in the srcdir and builddir and runs the schema validation on which one it finds. This handles non-srcdir builds in both cases: .gschema.xml is in the tarball and .gschema.xml is generated.
This commit is contained in:
parent
e7927faf17
commit
b3593693d9
@ -28,7 +28,7 @@ AC_DEFUN([GLIB_GSETTINGS],
|
||||
mostlyclean-am: clean-gsettings-schemas
|
||||
|
||||
%.gschema.valid: %.gschema.xml
|
||||
$(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --dry-run --schema-file=$^ && touch [$]@
|
||||
$(AM_V_GEN) if test -f "$^"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --dry-run --schema-file=$${d}$^ && touch [$]@
|
||||
|
||||
all-am: $(gsettings_SCHEMAS:.xml=.valid)
|
||||
uninstall-am: uninstall-gsettings-schemas
|
||||
|
Loading…
Reference in New Issue
Block a user