Makefile: Make release targets depend on Makefile
[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 GTESTER_PROGS =
13 noinst_PROGRAMS = $(GTESTER_PROGS)
14
15 include common.mk
16 include Makefile.introspection
17
18 include Makefile-cmph.am
19 include Makefile-girepository.am
20 include Makefile-giscanner.am
21 include Makefile-examples.am
22 include Makefile-gir.am
23 include Makefile-tools.am
24
25 ## Process this file with automake to produce Makefile.in
26 ACLOCAL_AMFLAGS = -I m4
27
28 SUBDIRS = . docs tests
29
30 DIST_SUBDIRS = m4 $(SUBDIRS)
31 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
32
33 man_MANS +=                     \
34         docs/g-ir-compiler.1    \
35         docs/g-ir-generate.1    \
36         docs/g-ir-scanner.1
37
38 pkgconfigdir = $(libdir)/pkgconfig
39 pkgconfig_DATA = gobject-introspection-1.0.pc gobject-introspection-no-export-1.0.pc
40
41 m4dir = $(datadir)/aclocal
42 m4_DATA = m4/introspection.m4
43
44 makedir = $(datadir)/gobject-introspection-1.0
45 dist_make_DATA = Makefile.introspection
46
47 EXTRA_DIST +=                   \
48         COPYING.LGPL            \
49         COPYING.GPL             \
50         CONTRIBUTORS            \
51         $(pkgconfig_DATA)       \
52         $(man_MANS)             \
53         $(m4_DATA)              \
54         misc/pep8.py            \
55         misc/pre-commit         \
56         misc/pyflakes.py
57
58 prepare-release-tag: Makefile
59         @TAG=`echo $(VERSION)|sed s/\\\./_/g`;\
60           echo "git tag GOBJECT_INTROSPECTION_$$TAG"; \
61           git tag -m "Tag $$VERSION" -a \
62               GOBJECT_INTROSPECTION_$$TAG
63
64 prepare-minor-release: Makefile $(distdir).tar.bz2 prepare-release-tag
65         python $(top_srcdir)/tools/verbump.py
66
67 upload-release: $(distdir).tar.bz2
68         git log origin/master..master
69         @echo -n "Ok to push? [y/N] "; read ans; test x$$ans == xy || exit 1
70         git push --tags origin master:master
71         scp $(distdir).tar.bz2 gnome.org:
72         ssh gnome.org install-module $(distdir).tar.bz2
73
74 check-local:
75         gtester --verbose $(GTESTER_PROGS)
76         @test ! -d $(top_srcdir)/.git || (test -f .git/hooks/pre-commit || (echo -e "ERROR: missing \
77         pre-commit hook.\n\ncopy misc/pre-commit to .git/hooks"; false))
78         @test ! -d $(top_srcdir)/.git || (test -x .git/hooks/pre-commit || (echo -e "ERROR: pre-commit \
79         is not executable\n\nrun chmod +x .git/hooks/pre-commit"; false))
80         @echo "  PEP-8 INQUISITION"
81         @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat --exclude=config.py
82
83 check-pyflakes:
84         @echo "  CHECK Pyflakes"
85         @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pyflakes.py