You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnome-shell-extension-openw.../Makefile.am

50 lines
1.8 KiB

ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = src data po
uuid = "openweather-extension@jenslody.de"
12 years ago
localprefix = $(HOME)/.local/share/gnome-shell/extensions
zip-file: all
12 years ago
rm -fR $(builddir)/_build
rm -fR $(builddir)/zip-file
$(MKDIR_P) $(builddir)/_build; \
12 years ago
$(MKDIR_P) $(builddir)/zip-file; \
$(MAKE) install DESTDIR="$(abs_builddir)/_build"; \
12 years ago
cp -r "$(builddir)/_build$(datadir)/gnome-shell/extensions/$(uuid)" "$(builddir)/_build"; \
if [ -f "$(builddir)/_build$(datadir)/glib-2.0/schemas/org.gnome.shell.extensions.openweather.gschema.xml" ]; then \
12 years ago
$(MKDIR_P) "$(builddir)/_build/$(uuid)/schemas"; \
mv "$(builddir)/_build$(datadir)/glib-2.0/schemas/org.gnome.shell.extensions.openweather.gschema.xml" "$(builddir)/_build/$(uuid)/schemas"; \
12 years ago
glib-compile-schemas "$(builddir)/_build/$(uuid)/schemas"; \
fi; \
cp -r "$(builddir)/_build$(datadir)/locale" "$(builddir)/_build/$(uuid)"; \
(cd "$(builddir)/_build/$(uuid)/"; \
zip -qr "$(abs_builddir)/zip-file/openweather.shell-extension.zip" .; \
); \
12 years ago
rm -fR $(builddir)/_build
local-install: zip-file
zip_file="$(abs_builddir)/zip-file/openweather.shell-extension.zip"; \
12 years ago
if [ -d "$(localprefix)/$(uuid)" ]; then \
rm -fR "$(localprefix)/$(uuid)"; \
fi; \
$(MKDIR_P) $(localprefix)/$(uuid); \
(cd $(localprefix)/$(uuid); \
unzip -q $${zip_file}; \
);
dist-hook: dist-changelog
.PHONY: dist-changelog
dist-changelog:
$(AM_V_at)if git --git-dir=$(top_srcdir)/.git --work-tree=$(top_srcdir) \
log --no-merges --pretty='tformat:%cd %an <%ae>%n%n%s%n%n%b' --date=short 2b58327bf183c94c788a13d746373efc22a3f3c1.. | \
$(SED) -e '/^[12]...-[01].-[0123]. [^<>]* <[^<>]*>$$/,/^$$/ b' \
-e '/[^ ]/,/^[ ]*$$/ !d' \
-e 's/^[ ]*/ /' \
-e 's/^[ ]*$$//' >.ChangeLog.tmp; \
then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
else rm -f .ChangeLog.tmp; exit 1; fi