diff Makefile @ 15:329aeecdd83a

Do not run glib-compile-schemas if schemas are installed into staging directory
author Guido Berhoerster <guido+pui@berhoerster.name>
date Sat, 14 Jul 2018 22:07:42 +0200
parents adba37525ee5
children 26e319ace486
line wrap: on
line diff
--- a/Makefile	Sat Jul 14 09:57:39 2018 +0200
+++ b/Makefile	Sat Jul 14 22:07:42 2018 +0200
@@ -230,8 +230,9 @@
 	    $(INSTALL.data) $${schema} \
 	        $(DESTDIR)$(datadir)/glib-2.0/schemas/$${schema}; \
 	done
-	[ -n "$(GSETTINGS_SCHEMAS)" ] && \
-	    $(GLIB_COMPILE_SCHEMAS) $(datadir)/glib-2.0/schemas
+	if [ -n "$(GSETTINGS_SCHEMAS)" ] && [ -z "$(DESTDIR)" ]; then \
+	    $(GLIB_COMPILE_SCHEMAS) $(datadir)/glib-2.0/schemas; \
+	fi
 	$(INSTALL.data) $(AUTOSTART_FILE) \
 	    $(DESTDIR)$(xdgautostartdir)/$(AUTOSTART_FILE)
 	for desktop_file in $(DESKTOP_FILES); do \