mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
gsettings.m4: Fix rules to work when there are no schemas
If there are no schemas, don't try to install "" at install time. (In particular, automake conditionals don't work properly with @-expanded rules, so if you conditionally build a schema, you'll still unconditionally get the install rule.) https://bugzilla.gnome.org/show_bug.cgi?id=633381
This commit is contained in:
parent
0940828418
commit
393834ac6f
@ -47,9 +47,11 @@ install-data-am: install-gsettings-schemas
|
||||
|
||||
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"
|
||||
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"
|
||||
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
|
||||
if test -n "$^"; then \
|
||||
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
|
||||
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
|
||||
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
|
||||
fi
|
||||
|
||||
uninstall-gsettings-schemas:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
|
Loading…
Reference in New Issue
Block a user