From f850d40f939175382e7b801d6b16b4651820c448 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 14 Jul 2010 13:40:53 +0800 Subject: fixes error when make distcheck. --- lua/Makefile.am | 13 ++++++++++--- lua/test-lua-plugin.c | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'lua') diff --git a/lua/Makefile.am b/lua/Makefile.am index e38c14c..f75244f 100644 --- a/lua/Makefile.am +++ b/lua/Makefile.am @@ -18,8 +18,14 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -lua_script_DATA = base.lua \ - $(NULL) +EXTRA_DIST = \ + base.lua \ + test.lua \ + $(NULL) + +lua_script_DATA = \ + base.lua \ + $(NULL) lua_scriptdir = $(pkgdatadir) @@ -45,11 +51,11 @@ libpylua_la_LIBADD = \ $(NULL) TESTS = \ - lua-ext-console \ test-lua-plugin \ $(NULL) noinst_PROGRAMS = \ + lua-ext-console \ $(TESTS) \ $(NULL) @@ -60,6 +66,7 @@ test_lua_plugin_SOURCES = \ test_lua_plugin_CFLAGS = \ @IBUS_CFLAGS@ \ @LUA_CFLAGS@ \ + -DLUASCRIPTDIR=\"$(top_srcdir)/lua\" \ $(NULL) test_lua_plugin_LDADD = \ diff --git a/lua/test-lua-plugin.c b/lua/test-lua-plugin.c index ac5ef62..e1a89e4 100644 --- a/lua/test-lua-plugin.c +++ b/lua/test-lua-plugin.c @@ -33,7 +33,7 @@ int main(int argc, char * argv[]){ IBusEnginePlugin * plugin; plugin = ibus_engine_plugin_new(); - ibus_engine_plugin_load_lua_script(plugin, "test.lua"); + ibus_engine_plugin_load_lua_script(plugin, LUASCRIPTDIR G_DIR_SEPARATOR_S "test.lua"); g_object_unref(plugin); -- cgit