Add config item: HangulKeyboard
[platform/upstream/ibus-hangul.git] / src / 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, or (at your option)
10 # 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
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21 AM_CFLAGS = \
22         @IBUS_CFLAGS@ \
23         @HANGUL_CFLAGS@ \
24         -DPKGDATADIR=\"$(pkgdatadir)\" \
25         $(NULL)
26 AM_LDFLAGS = \
27         @IBUS_LIBS@ \
28         @HANGUL_LIBS@ \
29         $(NULL)
30
31 check_PROGRAMS = \
32         $(NULL)
33
34 TESTS = \
35         $(check_PROGRAMS) \
36         $(NULL)
37
38 libexec_PROGRAMS = ibus-engine-hangul
39
40 ibus_engine_hangul_SOURCES = \
41         main.c \
42         engine.c \
43         engine.h \
44         $(NULL)
45 ibus_engine_hangul_CFLAGS = \
46         @IBUS_CFLAGS@ \
47         @HANGUL_CFLAGS@ \
48         -DPKGDATADIR=\"$(pkgdatadir)\" \
49         $(NULL)
50 ibus_engine_hangul_LDFLAGS = \
51         @IBUS_LIBS@ \
52         @HANGUL_LIBS@ \
53         $(NULL)
54
55 component_DATA = \
56         hangul.xml \
57         $(NULL)
58 componentdir = @datadir@/ibus/component
59
60 EXTRA_DIST = \
61         hangul.xml.in \
62         $(NULL)
63
64 CLEANFILES = \
65         hangul.xml \
66         $(NULL)
67
68 hangul.xml: hangul.xml.in
69         ( \
70                 libexecdir=${libexecdir}; \
71                 pkgdatadir=${pkgdatadir}; \
72                 s=`cat $<`; \
73                 eval "echo \"$${s}\""; \
74         ) > $@
75
76 test: ibus-engine-hangul
77         $(builddir)/ibus-engine-hangul