diff options
Diffstat (limited to 'apps/plugins/lua')
-rwxr-xr-x | apps/plugins/lua/action_helper.pl | 4 | ||||
-rw-r--r-- | apps/plugins/lua/lua.make | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugins/lua/action_helper.pl b/apps/plugins/lua/action_helper.pl index fdf45798b5..8460b6cb2a 100755 --- a/apps/plugins/lua/action_helper.pl +++ b/apps/plugins/lua/action_helper.pl | |||
@@ -18,10 +18,12 @@ | |||
18 | # | 18 | # |
19 | ############################################################################ | 19 | ############################################################################ |
20 | 20 | ||
21 | $input = "../../action.h"; | 21 | $input = $ARGV[0] . "/../../action.h"; |
22 | 22 | ||
23 | open(ACTION, "<$input") or die "Can't open $input!"; | 23 | open(ACTION, "<$input") or die "Can't open $input!"; |
24 | 24 | ||
25 | print "-- Don't change this file!\n"; | ||
26 | print "-- It is automatically generated of action.h\n"; | ||
25 | print "rb.actions = {\n"; | 27 | print "rb.actions = {\n"; |
26 | 28 | ||
27 | $i = 0; | 29 | $i = 0; |
diff --git a/apps/plugins/lua/lua.make b/apps/plugins/lua/lua.make index 6688f2d3d8..4a3690c8e1 100644 --- a/apps/plugins/lua/lua.make +++ b/apps/plugins/lua/lua.make | |||
@@ -30,7 +30,10 @@ else | |||
30 | ROCKS += $(LUA_BUILDDIR)/lua.rock | 30 | ROCKS += $(LUA_BUILDDIR)/lua.rock |
31 | endif | 31 | endif |
32 | 32 | ||
33 | $(LUA_BUILDDIR)/lua.rock: $(LUA_OBJ) | 33 | $(LUA_BUILDDIR)/lua.rock: $(LUA_OBJ) $(LUA_BUILDDIR)/actions.lua |
34 | |||
35 | $(LUA_BUILDDIR)/actions.lua: | ||
36 | $(call PRINTS,GEN $(@F))$(LUA_SRCDIR)/action_helper.pl $(LUA_SRCDIR) > $@ | ||
34 | 37 | ||
35 | $(LUA_BUILDDIR)/lua.refmap: $(LUA_OBJ) | 38 | $(LUA_BUILDDIR)/lua.refmap: $(LUA_OBJ) |
36 | 39 | ||