f0fd9b3c1b781d5d175a2883577081e0b21abe53
[platform/upstream/ibus-hangul.git] / setup / Makefile.am
1 # vim:set noet ts=4:
2 #
3 # ibus-hangul - The Hangul Engine For IBus
4 #
5 # Copyright (c) 2009 Choe Hwanjin <choe.hwanjin@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 setup_hangul_PYTHON = \
22         config.py \
23         main.py \
24         keycapturedialog.py \
25         setup.ui \
26         $(NULL)
27
28 nodist_setup_hangul_PYTHON = config.py
29
30 setup_hanguldir = $(pkgdatadir)/setup
31
32 bin_SCRIPTS = ibus-setup-hangul
33
34 setuplibdir = $(pkglibdir)/setup
35 setuplib_PROGRAMS = hangul_keyboard_list
36
37 hangul_keyboard_list_SOURCES = hangul_keyboard_list.c
38 hangul_keyboard_list_CFLAGS = $(HANGUL_CFLAGS)
39 hangul_keyboard_list_LDADD = $(HANGUL_LIBS)
40
41 desktop_in_files = ibus-setup-hangul.desktop.in
42 desktop_DATA = ibus-setup-hangul.desktop
43 desktopdir = $(datadir)/applications
44 @INTLTOOL_DESKTOP_RULE@
45
46 hicolor_icon_64_DATA = ibus-setup-hangul.png
47 hicolor_icon_64dir = $(datadir)/icons/hicolor/64x64/apps
48
49 hicolor_icon_scalable_DATA = ibus-setup-hangul.svg
50 hicolor_icon_scalabledir = $(datadir)/icons/hicolor/scalable/apps
51
52 CLEANFILES = \
53         ibus-setup-hangul \
54         config.py \
55         *.pyc \
56         ibus-setup-hangul.desktop \
57         $(NULL)
58
59 EXTRA_DIST = \
60         config.py.in \
61         ibus-setup-hangul.in \
62         ibus-setup-hangul.desktop.in \
63         $(NULL)
64
65 test:
66         $(ENV) DBUS_DEBUG=true \
67                PYTHONPATH=$(abs_top_srcdir):$(pyexecdir) \
68                $(PYTHON) $(srcdir)/main.py
69
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' $< > $@
75
76 ibus-setup-hangul: ibus-setup-hangul.in config.py Makefile
77         sed -e 's&@SETUP_PKGDATADIR@&$(pkgdatadir)&g' $< > $@