mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +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)
|
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
|
||||||
@$(NORMAL_INSTALL)
|
@$(NORMAL_INSTALL)
|
||||||
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"
|
if test -n "$^"; then \
|
||||||
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"
|
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
|
||||||
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
|
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
|
||||||
|
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
|
||||||
|
fi
|
||||||
|
|
||||||
uninstall-gsettings-schemas:
|
uninstall-gsettings-schemas:
|
||||||
@$(NORMAL_UNINSTALL)
|
@$(NORMAL_UNINSTALL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user