upload-release: Use bz2
[platform/upstream/gobject-introspection.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 ACLOCAL_AMFLAGS = -I m4
3
4 SUBDIRS = girepository giscanner tools gir docs tests examples
5 DIST_SUBDIRS = m4 $(SUBDIRS)
6 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
7
8 man_MANS =                      \
9         docs/g-ir-compiler.1    \
10         docs/g-ir-generate.1    \
11         docs/g-ir-scanner.1
12
13 pkgconfigdir = $(libdir)/pkgconfig
14 pkgconfig_DATA = gobject-introspection-1.0.pc gobject-introspection-no-export-1.0.pc
15
16 m4dir = $(datadir)/aclocal
17 m4_DATA = m4/introspection.m4
18
19 makedir = $(datadir)/gobject-introspection-1.0
20 dist_make_DATA = Makefile.introspection
21
22 EXTRA_DIST =                    \
23         COPYING.LGPL            \
24         COPYING.GPL             \
25         CONTRIBUTORS            \
26         $(pkgconfig_DATA)       \
27         $(man_MANS)             \
28         $(m4_DATA)              \
29         misc/pep8.py            \
30         misc/pre-commit         \
31         misc/pyflakes.py
32
33 release-tag:
34         @TAG=`echo $(VERSION)|sed s/\\\./_/g`;\
35           echo "* Tagging $(VERSION)"; \
36           git tag -s -m "Tag $$VERSION" -a \
37               GOBJECT_INTROSPECTION_$$TAG && \
38               git push --tags ssh://git.gnome.org/git/gobject-introspection
39
40 upload-release: $(distdir).tar.bz2
41         scp $(distdir).tar.bz2 gnome.org:
42         ssh gnome.org install-module $(distdir).tar.bz2
43
44 check-local:
45         @test ! -d $(top_srcdir)/.git || (test -f .git/hooks/pre-commit || (echo -e "ERROR: missing \
46         pre-commit hook.\n\ncopy misc/pre-commit to .git/hooks"; false))
47         @test ! -d $(top_srcdir)/.git || (test -x .git/hooks/pre-commit || (echo -e "ERROR: pre-commit \
48         is not executable\n\nrun chmod +x .git/hooks/pre-commit"; false))
49         @echo "  PEP-8 INQUISITION"
50         @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat --exclude=config.py
51         @echo "  CHECK Pyflakes"
52         @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pyflakes.py