d69ef0fca2318c22b68754aea1d1204e44505309
[gnome.gobject-introspection] / 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 docs tests examples
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 gobject-introspection-no-export-1.0.pc
31
32 m4dir = $(datadir)/aclocal
33 m4_DATA = m4/introspection.m4
34
35 EXTRA_DIST =                    \
36         COPYING.LGPL            \
37         COPYING.GPL             \
38         CONTRIBUTORS            \
39         $(pkgconfig_DATA)       \
40         $(man_MANS)             \
41         $(m4_DATA)              \
42         misc/pep8.py            \
43         misc/pyflakes.py
44
45 release-tag:
46         @TAG=`echo $(VERSION)|sed s/\\\./_/g`;\
47           echo "* Tagging $(VERSION)"; \
48           git tag -s -m "Tag $$VERSION" -a \
49               GOBJECT_INTROSPECTION_$$TAG && \
50               git push --tags ssh://git.gnome.org/git/gobject-introspection
51
52 upload-release: $(distdir).tar.gz
53         scp $(distdir).tar.gz gnome.org:
54         ssh gnome.org install-module $(distdir).tar.gz
55
56 check-local:
57         @echo "  PEP-8 INQUISITION"
58         @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat --exclude=config.py
59         @echo "  CHECK Pyflakes"
60         @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pyflakes.py