Debian Codegraph @

setup/Makefile.am

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