Add gobject-introspection.changes file
[profile/ivi/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 ${ACLOCAL_FLAGS}
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 check-local:
59         gtester --verbose $(GTESTER_PROGS)
60         @test ! -d $(top_srcdir)/.git || (test -f $(top_srcdir)/.git/hooks/pre-commit || (echo -e "ERROR: missing \
61         pre-commit hook.\n\ncopy misc/pre-commit to .git/hooks"; false))
62         @test ! -d $(top_srcdir)/.git || (test -x $(top_srcdir)/.git/hooks/pre-commit || (echo -e "ERROR: pre-commit \
63         is not executable\n\nrun chmod +x .git/hooks/pre-commit"; false))
64         @echo "  PEP-8 INQUISITION"
65         @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat --exclude=config.py
66         @touch $(top_builddir)/.make-check-passed
67
68 check-pyflakes:
69         @echo "  CHECK Pyflakes"
70         @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pyflakes.py
71
72
73 # Colin's handy Makefile bits for:
74 # 1) stuffing tarballs with pre-generated scripts from your workstation
75 # 2) bumping configure.ac version post-release
76 # 3) tagging correctly in git
77 # 4) uploading to gnome.org
78 # To use:
79 #  $ make check
80 #  $ make dist
81 #  $ make prepare-minor-release
82
83 # Customize to taste
84 TAG_PREFIX=GOBJECT_INTROSPECTION_
85 COMPRESSION=.xz
86
87
88 PACKAGE=@PACKAGE@
89 VERSION=@VERSION@
90 DISTNAME=$(PACKAGE)-$(VERSION).tar$(COMPRESSION)
91 TAG_VERSION=$(shell echo $(VERSION) |sed s/\\\./_/g)
92
93 prepare-release-tag: Makefile
94         git tag -m "Tag $(TAG_VERSION)" -a $(TAG_PREFIX)$(TAG_VERSION)
95
96 prepare-minor-release: $(DISTNAME) prepare-release-tag Makefile
97         env top_srcdir=$(top_srcdir) python $(top_srcdir)/tools/verbump.py
98
99 upload-release: $(DISTNAME) Makefile
100         git log origin/master..master
101         @echo -n "Ok to push? [y/N] "; read ans; test x$$ans == xy || exit 1
102         git push --tags origin master:master
103         scp $(DISTNAME) master.gnome.org:
104         ssh master.gnome.org install-module $(DISTNAME)
105