forked from phuang/ibus
/
Makefile.am
88 lines (78 loc) · 2.41 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# vim:set noet ts=4:
#
# ibus - The Input Bus
#
# Copyright (c) 2007-2014 Peng Huang <shawn.p.huang@gmail.com>
# Copyright (c) 2015-2019 Takao Fujiwara <takao.fujiwara1@gmail.com>
# Copyright (c) 2007-2019 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
# USA
ibussetup_PYTHON = \
emojilang.py \
enginecombobox.py \
enginedialog.py \
enginetreeview.py \
engineabout.py \
i18n.py \
icon.py \
keyboardshortcut.py \
main.py \
$(NULL)
ibussetup_DATA = \
setup.ui \
$(NULL)
bin_SCRIPTS = ibus-setup
ibussetupdir = $(pkgdatadir)/setup
ibus-setup: ibus-setup.in
$(AM_V_GEN) sed -e "s|\@datarootdir\@|$(datarootdir)|g" \
-e "s|\@localedir\@|$(localedir)|g" \
-e "s|\@libexecdir\@|$(libexecdir)|g" \
-e "s|\@prefix\@|$(prefix)|g" \
-e "s|\@PYTHON\@|$(PYTHON)|g" \
$< > $@.tmp && \
mv $@.tmp $@
desktop_notrans_files = ibus-setup.desktop
desktop_DATA = org.freedesktop.IBus.Setup.desktop
desktopdir = $(datadir)/applications
org.freedesktop.IBus.Setup.desktop: ibus-setup.desktop
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
man_one_in_files = ibus-setup.1.in
man_one_DATA = $(man_one_in_files:.1.in=.1)
man_onedir = $(mandir)/man1
%.1: %.1.in
$(AM_V_GEN) sed \
-e 's|@VERSION[@]|$(VERSION)|g' $< > $@.tmp && \
mv $@.tmp $@
CLEANFILES = \
$(desktop_DATA) \
$(man_one_DATA) \
*.pyc \
ibus-setup \
$(NULL)
EXTRA_DIST = \
$(desktop_notrans_files) \
$(man_one_in_files) \
ibus-setup.in \
setup.ui \
$(NULL)
test:
$(ENV_IBUS_TEST) \
PYTHONPATH=$(top_srcdir) \
IBUS_PREFIX="@prefix@" \
IBUS_LOCALEDIR="@localedir@" \
$(PYTHON) \
$(srcdir)/main.py
-include $(top_srcdir)/git.mk