Push the tags to the remote host when doing the release
[platform/upstream/gobject-introspection.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/gcov.mak
3
4 GCOVSOURCES =
5
6 if GI_GCOV_ENABLED
7 GCOV_DIRS = girepository tools
8
9 check-coverage: coverage-report.txt
10         @cat $(top_builddir)/coverage-report.txt
11
12 else
13
14 check-coverage:
15         @echo "ERROR: Need to reconfigure with --enable-gcov to run make check-coverage"
16
17 endif
18
19 ACLOCAL_AMFLAGS = -I m4
20
21 SUBDIRS = girepository giscanner tools gir tests
22 DIST_SUBDIRS = m4 $(SUBDIRS)
23
24 man_MANS =                      \
25         docs/g-ir-compiler.1    \
26         docs/g-ir-generate.1    \
27         docs/g-ir-scanner.1
28
29 pkgconfigdir = $(libdir)/pkgconfig
30 pkgconfig_DATA = gobject-introspection-1.0.pc
31
32 EXTRA_DIST =                    \
33         CONTRIBUTORS            \
34         $(pkgconfig_DATA)       \
35         $(man_MANS)             \
36         misc/pep8.py            \
37         misc/pyflakes.py
38
39 release-tag:
40         @TAG=`echo $(VERSION)|sed s/\\\./_/g`;\
41           echo "* Tagging $(VERSION)"; \
42           git tag -m "Tag $$VERSION" -a \
43               GOBJECT_INTROSPECTION_$$TAG && \
44               git push --tags ssh://git.gnome.org/git/gobject-introspection
45
46 upload-release: $(distdir).tar.gz
47         scp $(distdir).tar.gz gnome.org:
48         ssh gnome.org install-module $(distdir).tar.gz