1 ## Useful top-level Makefile.am snippets for Telepathy projects.
4 chmod u+w ${distdir}/ChangeLog
5 if test -d ${top_srcdir}/.git; then \
6 ( cd ${top_srcdir} && git log --date=iso $(CHANGELOG_RANGE) ) > ${distdir}/ChangeLog; \
10 @test "z$(CHECK_FOR_UNRELEASED)" = z || \
14 if grep -r UNRELEASED $(CHECK_FOR_UNRELEASED); \
16 echo "^^^ This is meant to be a release, but some files say UNRELEASED" >&2; \
25 echo "Hey! @VERSION@ is not a release!" >&2; \
29 @cd ${top_srcdir} && \
30 if ! git diff --no-ext-diff --quiet --exit-code; then \
31 echo "Hey! Your tree is dirty! No release for you." >&2; \
34 @cd ${top_srcdir} && \
35 if ! git diff --cached --no-ext-diff --quiet --exit-code; then \
36 echo "Hey! You have changes staged! No release for you." >&2; \
41 @echo "Hey! You need to pass --enable-gtk-doc to configure!"
45 %.tar.gz.asc: %.tar.gz
46 $(AM_V_GEN)gpg --detach-sign --armor $@
48 @PACKAGE@-@VERSION@.tar.gz:
49 $(MAKE) _is-release-check
53 maintainer-prepare-release:
54 $(MAKE) _is-release-check
58 git tag -s @PACKAGE@-@VERSION@ -m @PACKAGE@' '@VERSION@
59 gpg --detach-sign --armor @PACKAGE@-@VERSION@.tar.gz
62 $(AM_V_GEN)(python $(top_srcdir)/tools/make-release-mail.py \
63 @PACKAGE@ @VERSION@ $(top_srcdir)/NEWS > $@.tmp && \
66 maintainer-upload-release: _maintainer-upload-release
68 _maintainer-upload-release-check: _is-release-check
69 test -f @PACKAGE@-@VERSION@.tar.gz
70 test -f @PACKAGE@-@VERSION@.tar.gz.asc
71 gpg --verify @PACKAGE@-@VERSION@.tar.gz.asc
73 _maintainer-upload-release: _maintainer-upload-release-check
74 rsync -vzP @PACKAGE@-@VERSION@.tar.gz telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE@-@VERSION@.tar.gz
75 rsync -vzP @PACKAGE@-@VERSION@.tar.gz.asc telepathy.freedesktop.org:/srv/telepathy.freedesktop.org/www/releases/@PACKAGE@/@PACKAGE@-@VERSION@.tar.gz.asc
77 maintainer-make-release:
78 $(MAKE) maintainer-prepare-release
79 $(MAKE) maintainer-upload-release
81 @echo " • bump the nano-version;"
82 @echo " • push the branch and tags upstream; and"
83 @echo " • send release-mail to <telepathy@lists.freedesktop.org>."
85 ## vim:set ft=automake: