forked from simon04/gnome-shell-extension-weather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
40 lines (34 loc) · 1.51 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
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = src data po
zip-file: all
if LOCAL_INSTALL
-rm -fR $(builddir)/_build
$(MKDIR_P) $(builddir)/_build; \
$(MAKE) install DESTDIR="$(abs_builddir)/_build"; \
$(GLIB_COMPILE_SCHEMAS) "$(abs_builddir)/_build/$(prefix)/share/gnome-shell/extensions/weather@gnome-shell-extensions.gnome.org/schemas"; \
(cd "$(abs_builddir)/_build/$(prefix)/share/gnome-shell/extensions/weather@gnome-shell-extensions.gnome.org" ; \
zip -qr "$(abs_builddir)/weather-indicator.shell-extension.zip" .; \
); \
rm -fR $(builddir)/_build ; \
echo "===================================================================" ; \
echo "zip-file ready for distribution:" ; \
echo "weather-indicator.shell-extension.zip" ; \
echo "==================================================================="
else
@echo "*"
@echo "* You need to configure the package --with-local-install=yes to create a zip-file."
@echo "*"
endif
clean-local:
rm -f "$(abs_builddir)/weather-indicator.shell-extension.zip"
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