-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile.am
115 lines (93 loc) · 2.4 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
libexec_PROGRAMS = ibus-engine-skk ibus-setup-skk
noinst_LTLIBRARIES = libutil.la
libutil_la_VALAFLAGS = \
-H libutil.h --vapi ibus-skk.vapi \
--vapidir=. \
--pkg config \
--pkg gee-1.0 \
--pkg skk-1.0 \
--pkg ibus-1.0 \
--library ibus-skk \
$(VALAFLAGS)
libutil_la_SOURCES = \
preferences.vala \
plist.vala
libutil_la_CFLAGS = \
$(COMMON_CFLAGS)
# force include config.h before gi18n.h.
AM_CPPFLAGS = -include $(CONFIG_HEADER)
COMMON_CFLAGS = \
$(IBUS_CFLAGS) \
$(LIBSKK_CFLAGS) \
-DPACKAGE_DATADIR=\"$(pkgdatadir)\" \
-DLOCALEDIR=\"$(datadir)/locale\" \
-DSETUPDIR=\"$(setupdir)\" \
-DLIBEXECDIR=\"$(libexecdir)\" \
-DDATADIR=\"$(datadir)\"
COMMON_LIBS = \
$(IBUS_LIBS) \
$(LIBSKK_LIBS)
ibus_engine_skk_VALAFLAGS = \
--vapidir=. \
--pkg config --pkg ibus-skk \
$(VALAFLAGS)
ibus_engine_skk_CFLAGS = \
$(COMMON_CFLAGS)
ibus_engine_skk_LDADD = \
$(COMMON_LIBS) \
libutil.la
ibus_engine_skk_SOURCES = \
engine.vala
ibus_setup_skk_VALAFLAGS = \
--vapidir=. \
--pkg config \
--pkg ibus-skk \
--pkg gtk+-3.0 \
$(VALAFLAGS)
ibus_setup_skk_CFLAGS = \
$(COMMON_CFLAGS) \
$(GTK_CFLAGS)
ibus_setup_skk_LDADD = \
$(COMMON_LIBS) \
$(GTK_LIBS) \
libutil.la
ibus_setup_skk_SOURCES = \
setup.vala
setupdir = $(pkgdatadir)/setup
setup_DATA = ibus-skk-preferences.ui
desktop_in_in_files = ibus-setup-skk.desktop.in.in
desktop_in_files = $(desktop_in_in_files:.in.in=.in)
$(desktop_in_files): %.desktop.in: %.desktop.in.in Makefile
$(AM_V_GEN) sed \
-e "s|\@libexecdir\@|$(libexecdir)|" \
-e "s|\@pkgdatadir\@|$(pkgdatadir)|" \
$< > $@.tmp && mv $@.tmp $@
desktopdir=$(datadir)/applications
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
GITIGNOREFILES = \
$(libutil_la_SOURCES:.vala=.c) \
$(ibus_engine_skk_SOURCES:.vala=.c) \
$(ibus_setup_skk_SOURCES:.vala=.c) \
libutil_la_vala.stamp \
ibus_engine_skk_vala.stamp \
ibus_setup_skk_vala.stamp \
libutil.h \
$(NULL)
CLEANFILES = \
ibus-skk.vapi \
$(desktop_DATA) \
$(desktop_in_files) \
$(NULL)
EXTRA_DIST = \
config.vapi \
ibus-skk.deps \
ibus-1.0.vapi \
ibus-1.0.deps \
ibus-skk-preferences.ui.in \
$(desktop_in_in_files) \
$(NULL)
DISTCLEANFILES = \
ibus-skk-preferences.ui \
$(NULL)
-include $(top_srcdir)/git.mk