3 # ibus-hangul - The Hangul Engine For IBus
5 # Copyright (c) 2009 Choe Hwanjin <choe.hwanjin@gmail.com>
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.
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.
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.
21 setup_hangul_PYTHON = \
28 nodist_setup_hangul_PYTHON = config.py
30 setup_hanguldir = $(pkgdatadir)/setup
32 bin_SCRIPTS = ibus-setup-hangul
34 setuplibdir = $(pkglibdir)/setup
35 setuplib_PROGRAMS = hangul_keyboard_list
37 hangul_keyboard_list_SOURCES = hangul_keyboard_list.c
38 hangul_keyboard_list_CFLAGS = $(HANGUL_CFLAGS)
39 hangul_keyboard_list_LDADD = $(HANGUL_LIBS)
41 desktop_in_files = ibus-setup-hangul.desktop.in
42 desktop_DATA = ibus-setup-hangul.desktop
43 desktopdir = $(datadir)/applications
44 @INTLTOOL_DESKTOP_RULE@
46 hicolor_icon_64_DATA = ibus-setup-hangul.png
47 hicolor_icon_64dir = $(datadir)/icons/hicolor/64x64/apps
49 hicolor_icon_scalable_DATA = ibus-setup-hangul.svg
50 hicolor_icon_scalabledir = $(datadir)/icons/hicolor/scalable/apps
56 ibus-setup-hangul.desktop \
61 ibus-setup-hangul.in \
62 ibus-setup-hangul.desktop.in \
66 $(ENV) DBUS_DEBUG=true \
67 PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
68 $(PYTHON) $(srcdir)/main.py
70 config.py: config.py.in Makefile
71 sed -e 's&@SETUP_GETTEXT_PACKAGE@&$(GETTEXT_PACKAGE)&g' \
72 -e 's&@SETUP_LOCALEDIR@&$(localedir)&g' \
73 -e 's&@SETUP_PKGDATADIR@&$(pkgdatadir)&g' \
74 -e 's&@SETUP_PKGLIBDIR@&$(pkglibdir)&g' $< > $@
76 ibus-setup-hangul: ibus-setup-hangul.in config.py Makefile
77 sed -e 's&@SETUP_PKGDATADIR@&$(pkgdatadir)&g' $< > $@