Add configure --disable-python to disable build for python modules.
[platform/upstream/ibus.git] / Makefile.am
1 # vim:set noet ts=4:
2 #
3 # ibus - The Input Bus
4 #
5 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
6 # Copyright (c) 2007-2010 Red Hat, Inc.
7 #
8 # This library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public
10 # License as published by the Free Software Foundation; either
11 # version 2 of the License, or (at your option) any later version.
12 #
13 # This library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU Lesser General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with this program; if not, write to the
20 # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21 # Boston, MA  02111-1307  USA
22
23 SUBDIRS =       \
24         src         \
25         gconf       \
26         util        \
27         client      \
28         bus         \
29         data        \
30         m4          \
31         po          \
32         docs        \
33         $(NULL)
34
35 if ENABLE_PYTHON
36 SUBDIRS +=      \
37         ibus        \
38         ui          \
39         setup       \
40         $(NULL)
41 endif
42
43 ACLOCAL_AMFLAGS = -I m4
44
45 pkgconfigdir = $(libdir)/pkgconfig
46 pkgconfig_DATA = ibus-1.0.pc
47
48 # xinitrc_SCRIPTS = \
49 #       ibus.sh \
50 #       $(NULL)
51 # xinitrcdir = $(sysconfdir)/X11/xinit/xinitrc.d
52
53 EXTRA_DIST = \
54         autogen.sh \
55         ibus-1.0.pc.in \
56         ibus.spec.in \
57         python-config.py \
58         ibus.sh \
59         $(NULL)
60
61 noinst_DIST = \
62         $(NULL)
63
64 DISTCLEANFILES = \
65         po/stamp-it \
66         $(NULL)
67
68 install-data-hook:
69         $(MKDIR_P) $(DESTDIR)${pkgdatadir}/engine
70
71 DISTCHECK_CONFIGURE_FLAGS = \
72         --enable-gtk-doc \
73         --disable-schemas-install \
74         $(NULL)
75
76 dist-hook:
77         if test -d .git ; then \
78                 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
79         fi
80
81 rpm: dist @PACKAGE_NAME@.spec
82         rpmbuild -bb \
83                         --define "_sourcedir `pwd`" \
84                         --define "_builddir `pwd`/rpm" \
85                         --define "_srcrpmdir `pwd`/rpm" \
86                         --define "_rpmdir `pwd`"/rpm \
87                         --define "_specdir `pwd`/rpm" \
88                         @PACKAGE_NAME@.spec
89
90 srpm: dist @PACKAGE_NAME@.spec
91         rpmbuild -bs \
92                         --define "_sourcedir `pwd`" \
93                         --define "_builddir `pwd`/rpm" \
94                         --define "_srcrpmdir `pwd`/rpm" \
95                         --define "_rpmdir `pwd`/rpm" \
96                         --define "_specdir `pwd`/rpm" \
97                         @PACKAGE_NAME@.spec
98
99 clean-rpm:
100         $(RM) -r "`uname -i`"
101
102 clean-local: clean-rpm
103
104 git-tag:
105         git tag @PACKAGE_VERSION@