Common code for retrieving translations and GSettings schemas has been factored out into lib/convenience.js, which is part of every extension installation. Since that code relies on renames done at zip file creation time, extensions can no longer be installed with "make install". Instead, one should create the zip file and install it with the tweak-tool. There is also a bash script, local-install.sh, that will install everything in zip-files. Also, since the GSettingsSchemaSource code is not yet in a stable GLib release, extensions using GSettings have seen their stable shell version removed.
29 lines
1.0 KiB
Makefile
29 lines
1.0 KiB
Makefile
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
|
|
|
SUBDIRS = extensions po
|
|
|
|
EXTRA_DIST = lib/convenience.js
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-extensions=all
|
|
|
|
include include.mk
|
|
|
|
zip-file: all
|
|
-rm -fR $(builddir)/_build
|
|
-rm -fR $(builddir)/zip-files
|
|
mkdir $(builddir)/_build; \
|
|
mkdir $(builddir)/zip-files; \
|
|
$(MAKE) install DESTDIR="`pwd`/_build"; \
|
|
for i in $(ENABLED_EXTENSIONS); do \
|
|
mv "`pwd`/_build/$(topextensiondir)/$${i}$(extensionbase)" "`pwd`/_build/"; \
|
|
cp -r "`pwd`/_build/$(datadir)/locale" "`pwd`/_build/$${i}$(extensionbase)"; \
|
|
if [ -f "`pwd`/_build/$(datadir)/glib-2.0/schemas/$(gschemabase).$${i}.gschema.xml" ]; then \
|
|
mkdir "`pwd`/_build/$${i}$(extensionbase)/schemas"; \
|
|
mv "`pwd`/_build/$(datadir)/glib-2.0/schemas/$(gschemabase).$${i}.gschema.xml" "`pwd`/_build/$${i}$(extensionbase)/schemas"; \
|
|
glib-compile-schemas "`pwd`/_build/$${i}$(extensionbase)/schemas"; \
|
|
fi; \
|
|
(cd "`pwd`/_build/$${i}$(extensionbase)"; \
|
|
zip -qr "$(abs_builddir)/zip-files/$${i}$(extensionbase).shell-extension.zip" .; \
|
|
); \
|
|
done
|