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