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.

45 lines
1.4 KiB

ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = src data
uuid = panel-osd@berend.de.schouwer.gmail.com
localprefix = $(HOME)/.local/share/gnome-shell/extensions
zip-file: all
rm -fR $(builddir)/_build
rm -fR $(builddir)/zip-file
$(MKDIR_P) $(builddir)/_build; \
$(MKDIR_P) $(builddir)/zip-file; \
$(MAKE) install DESTDIR="$(abs_builddir)/_build"; \
cp -r "$(builddir)/_build$(datadir)/gnome-shell/extensions/$(uuid)" "$(builddir)/_build"; \
cp -r "$(builddir)/_build$(datadir)/locale" "$(builddir)/_build/$(uuid)"; \
(cd "$(builddir)/_build/$(uuid)/"; \
zip -qr "$(abs_builddir)/zip-file/panel-osd.shell-extension.zip" .; \
); \
rm -fR $(builddir)/_build
local-install: zip-file
zip_file="$(abs_builddir)/zip-file/panel-osd.shell-extension.zip"; \
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