aaf2057725
Instead of hardcoding metadata.json, generate it from .in files, adding installation prefixes, current target version and configured uuid.
20 lines
584 B
Makefile
20 lines
584 B
Makefile
# Change these to modify how installation is performed
|
|
topextensiondir = $(datadir)/gnome-shell/extensions
|
|
extensionbase = @gnome-shell-extensions.gnome.org
|
|
|
|
uuid = $(EXTENSION_ID)$(extensionbase)
|
|
|
|
extensiondir = $(topextensiondir)/$(uuid)
|
|
|
|
dist_extension_DATA = extension.js stylesheet.css
|
|
nodist_extension_DATA = metadata.json $(EXTRA_EXTENSION)
|
|
|
|
EXTRA_DIST = metadata.json.in
|
|
|
|
metadata.json: metadata.json.in
|
|
sed -e "s|[@]LOCALEDIR@|$(datadir)/locale|" \
|
|
-e "s|[@]uuid@|$(uuid)|" \
|
|
-e "s|[@]shell_current@|$(PACKAGE_VERSION)|" $< > $@
|
|
|
|
CLEANFILES = metadata.json
|