Permalink
Fetching contributors…
Cannot retrieve contributors at this time
135 lines (106 sloc) 2.74 KB
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-0.8 \
--pkg skk-1.0 \
--pkg ibus-1.0 \
--library ibus-skk \
$(VALAFLAGS)
libutil_la_SOURCES = \
preferences.vala \
plist.vala
libutil_la_CFLAGS = \
$(COMMON_CFLAGS)
BUILT_SOURCES = ibus-skk.vapi
# 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)
if IBUS_1_5
ibus_engine_skk_VALAFLAGS += -D IBUS_1_5
endif
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
edit = sed \
-e 's|@VERSION[@]|$(VERSION)|g' \
-e 's|@libexecdir[@]|$(libexecdir)|g' \
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g'
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) $(edit) $< > $@.tmp && mv $@.tmp $@
desktopdir=$(datadir)/applications
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
component_DATA = skk.xml
componentdir = $(datadir)/ibus/component
skk.xml.in: skk.xml.in.in
$(AM_V_GEN) $(edit) $< > $@.tmp && mv $@.tmp $@
@INTLTOOL_XML_NOMERGE_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) \
skk.xml.in \
skk.xml \
$(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) \
skk.xml.in.in \
$(NULL)
DISTCLEANFILES = \
ibus-skk-preferences.ui \
$(NULL)
-include $(top_srcdir)/git.mk