Skip to content

Commit

Permalink
Makefile: install GSettings schemas to system schema dir
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Dec 24, 2023
1 parent de39d47 commit 23f54bb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,16 @@ CONFIGURED_DESKTOP_ENTRY := $(basename $(UNCONFIGURED_DESKTOP_ENTRY))
CONFIGURED_DBUS_SERVICE := $(basename $(UNCONFIGURED_DBUS_SERVICE))

SYS_INSTALLED_EXTENSION_DIR := $(extensiondir)/$(EXTENSION_UUID)
SYS_INSTALLED_CONTENT := $(addprefix $(SYS_INSTALLED_EXTENSION_DIR)/,$(PACK_CONTENT) $(SCHEMAS_COMPILED))
SYS_INSTALLED_CONTENT := $(addprefix $(SYS_INSTALLED_EXTENSION_DIR)/,$(filter-out $(SCHEMAS) $(SCHEMAS_COMPILED),$(PACK_CONTENT)))
SYS_INSTALLED_SCHEMAS := $(addprefix $(datadir)/glib-2.0/schemas/,$(notdir $(SCHEMAS)))
SYS_INSTALLED_DESKTOP_ENTRY := $(datadir)/applications/$(notdir $(CONFIGURED_DESKTOP_ENTRY))
SYS_INSTALLED_DBUS_SERVICE := $(datadir)/dbus-1/services/$(notdir $(CONFIGURED_DBUS_SERVICE))
SYS_INSTALLED_EXECUTABLES := $(addprefix $(SYS_INSTALLED_EXTENSION_DIR)/,$(EXECUTABLES))
SYS_INSTALLED_LAUNCHER := $(filter %$(LAUNCHER),$(SYS_INSTALLED_EXECUTABLES))
SYS_INSTALLED_LAUNCHER_SYMLINK := $(bindir)/$(notdir $(LAUNCHER))
SYS_INSTALLED_ALL := \
$(SYS_INSTALLED_CONTENT) \
$(SYS_INSTALLED_SCHEMAS) \
$(SYS_INSTALLED_DESKTOP_ENTRY) \
$(SYS_INSTALLED_DBUS_SERVICE) \
$(SYS_INSTALLED_LAUNCHER_SYMLINK) \
Expand Down Expand Up @@ -321,6 +323,11 @@ $(addprefix $(DESTDIR),$(SYS_INSTALLED_DBUS_SERVICE)): $(CONFIGURED_DBUS_SERVICE
$(addprefix $(DESTDIR),$(SYS_INSTALLED_LAUNCHER_SYMLINK)): | installdirs
ln -s $(SYS_INSTALLED_LAUNCHER) $@

system-schemas-compile: $(addprefix $(DESTDIR),$(SYS_INSTALLED_SCHEMAS)) $(GLIB_COMPILE_SCHEMAS)
$(GLIB_COMPILE_SCHEMAS) $(dir $<)

.PHONY: system-schemas-compile

system-install: $(addprefix $(DESTDIR),$(SYS_INSTALLED_ALL))

system-uninstall:
Expand All @@ -329,6 +336,11 @@ system-uninstall:

.PHONY: system-install system-uninstall installdirs

ifeq ($(DESTDIR),)
system-install: system-schemas-compile
system-uninstall: system-schemas-compile
endif

# System/user install autodetect

ifneq ($(DESTDIR),)
Expand Down

0 comments on commit 23f54bb

Please sign in to comment.