forked from Neroth/gnome-shell-extension-weather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
49 lines (41 loc) · 1.83 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = src data po
uuid = "[email protected]"
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"; \
if [ -f "$(builddir)/_build$(datadir)/glib-2.0/schemas/org.gnome.shell.extensions.openweather.gschema.xml" ]; then \
$(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"; \
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" .; \
); \
rm -fR $(builddir)/_build
local-install: zip-file
zip_file="$(abs_builddir)/zip-file/openweather.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