From 09a958a7380cec12c98dff13fd973b95e9f6de57 Mon Sep 17 00:00:00 2001 From: David Yu Yang Date: Mon, 13 Sep 2021 21:10:40 +0800 Subject: [PATCH] Restore COMPILE_SCHEMA option Restoring as per review https://github.com/Guake/guake/pull/1893#pullrequestreview-752712271 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 171d8b99d..ca1e2f8df 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ bindir = $(exec_prefix)/bin PYTHON_SITEDIRS_FOR_PREFIX="env PREFIX=$(PREFIX) $(PYTHON_INTERPRETER) scripts/all-sitedirs-in-prefix.py" ROOT_DIR=$(shell pwd) DATA_DIR=$(ROOT_DIR)/guake/data +COMPILE_SCHEMA:=1 datarootdir:=$(PREFIX)/share datadir:=$(datarootdir) @@ -141,8 +142,7 @@ install-schemas: install -Dm644 "$(DEV_DATA_DIR)/org.guake.gschema.xml" "$(DESTDIR)$(SCHEMA_DIR)/" compile-shemas: - glib-compile-schemas $(DESTDIR)$(gsettingsschemadir) - + if [ $(COMPILE_SCHEMA) = 1 ]; then glib-compile-schemas $(DESTDIR)$(gsettingsschemadir); fi uninstall-system: uninstall-schemas uninstall-locale $(SHELL) -c $(PYTHON_SITEDIRS_FOR_PREFIX) \