fix google #1495
[platform/upstream/ibus-hangul.git] / Makefile.am
1 # vim:set noet ts=4:
2 #
3 # ibus-hangul - The Hangul engine for IBus
4 #
5 # Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License along
18 # with this program; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
21 SUBDIRS = \
22         src \
23         setup \
24         icons \
25         data \
26         m4 \
27         po \
28         $(NULL)
29
30 ACLOCAL_AMFLAGS = -I m4
31
32 EXTRA_DIST = \
33         autogen.sh \
34         ibus-hangul.spec.in \
35         $(NULL)
36
37 noinst_DIST = \
38         $(NULL)
39
40
41 DISTCLEANFILES = \
42         po/stamp-it \
43         $(NULL)
44
45 rpm: dist @PACKAGE_NAME@.spec
46         rpmbuild -bb \
47                         --define "_sourcedir `pwd`" \
48                         --define "_builddir `pwd`" \
49                         --define "_srcrpmdir `pwd`" \
50                         --define "_rpmdir `pwd`" \
51                         --define "_specdir `pwd`" \
52                         @PACKAGE_NAME@.spec
53
54 srpm: dist @PACKAGE_NAME@.spec
55         rpmbuild -bs \
56                         --define "_sourcedir `pwd`" \
57                         --define "_builddir `pwd`" \
58                         --define "_srcrpmdir `pwd`" \
59                         --define "_rpmdir `pwd`" \
60                         --define "_specdir `pwd`" \
61                         @PACKAGE_NAME@.spec
62
63 clean-rpm:
64         $(RM) -r "`uname -i`"
65
66 clean-local: clean-rpm
67
68 dist-hook:
69         if test -d .git ; then \
70                 git log --name-status --date=iso > $(distdir)/ChangeLog ; \
71         fi