summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-07-14 13:40:53 +0800
committerPeng Wu <alexepico@gmail.com>2010-07-14 13:40:53 +0800
commitf850d40f939175382e7b801d6b16b4651820c448 (patch)
treed7cf0e18728df078bc29ad7d6ae8c73e2213303d /lua
parentd6046846b0f5214ed61d92fe8e98b02bb87767d2 (diff)
downloadibus-libpinyin-f850d40f939175382e7b801d6b16b4651820c448.tar.gz
ibus-libpinyin-f850d40f939175382e7b801d6b16b4651820c448.tar.xz
ibus-libpinyin-f850d40f939175382e7b801d6b16b4651820c448.zip
fixes error when make distcheck.
Diffstat (limited to 'lua')
-rw-r--r--lua/Makefile.am13
-rw-r--r--lua/test-lua-plugin.c2
2 files changed, 11 insertions, 4 deletions
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);