Always put setup dialog in center of screen.
[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         ibus            \
27         ui                      \
28         util            \
29         client          \
30         setup           \
31         bus             \
32         data            \
33         m4                      \
34         po                      \
35         docs            \
36         $(NULL)
37
38 ACLOCAL_AMFLAGS = -I m4
39
40 pkgconfigdir = $(libdir)/pkgconfig
41 pkgconfig_DATA = ibus-1.0.pc
42
43 # xinitrc_SCRIPTS = \
44 #       ibus.sh \
45 #       $(NULL)
46 # xinitrcdir = $(sysconfdir)/X11/xinit/xinitrc.d
47
48 EXTRA_DIST = \
49         autogen.sh \
50         ibus-1.0.pc.in \
51         ibus.spec.in \
52         python-config.py \
53         ibus.sh \
54         $(NULL)
55
56 noinst_DIST = \
57         $(NULL)
58
59 DISTCLEANFILES = \
60         po/stamp-it \
61         $(NULL)
62
63 install-data-hook:
64         $(MKDIR_P) $(DESTDIR)${pkgdatadir}/engine
65
66 DISTCHECK_CONFIGURE_FLAGS = \
67         --enable-gtk-doc \
68         --disable-schemas-install \
69         $(NULL)
70
71 dist-hook:
72         if test -d .git ; then \
73                 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
74         fi
75
76 rpm: dist @PACKAGE_NAME@.spec
77         rpmbuild -bb \
78                         --define "_sourcedir `pwd`" \
79                         --define "_builddir `pwd`/rpm" \
80                         --define "_srcrpmdir `pwd`/rpm" \
81                         --define "_rpmdir `pwd`"/rpm \
82                         --define "_specdir `pwd`/rpm" \
83                         @PACKAGE_NAME@.spec
84
85 srpm: dist @PACKAGE_NAME@.spec
86         rpmbuild -bs \
87                         --define "_sourcedir `pwd`" \
88                         --define "_builddir `pwd`/rpm" \
89                         --define "_srcrpmdir `pwd`/rpm" \
90                         --define "_rpmdir `pwd`/rpm" \
91                         --define "_specdir `pwd`/rpm" \
92                         @PACKAGE_NAME@.spec
93
94 clean-rpm:
95         $(RM) -r "`uname -i`"
96
97 clean-local: clean-rpm
98
99 git-tag:
100         git tag @PACKAGE_VERSION@