summaryrefslogtreecommitdiff
path: root/Examples/lua/embed
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-04-15 19:37:07 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-04-19 22:47:27 +0100
commit6a48eb5e4705c49f5004ed669c0c953351eaaf77 (patch)
tree35036766ed3743bd89d502049d743ef398e2f19d /Examples/lua/embed
parent695de9ee0e748347985a470f193c07f3320a2b58 (diff)
downloadswig-6a48eb5e4705c49f5004ed669c0c953351eaaf77.tar.gz
Lua examples now run during 'make check' and makefile tidyup.
Diffstat (limited to 'Examples/lua/embed')
-rw-r--r--Examples/lua/embed/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Examples/lua/embed/Makefile b/Examples/lua/embed/Makefile
index 51d0e6180..df1f8fa04 100644
--- a/Examples/lua/embed/Makefile
+++ b/Examples/lua/embed/Makefile
@@ -1,18 +1,19 @@
TOP = ../..
SWIG = $(TOP)/../preinst-swig
TARGET = embed
-SRCS = example.c
+SRCS = example.c
INTERFACE = example.i
LUA_INTERP = embed.c
# this is a little different to normal as we have our own special interpreter
# which we want to static link
-all::
+check: build
+ $(MAKE) -f $(TOP)/Makefile TARGET='$(TARGET)' lua_embed_run
+
+build:
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) SRCS='$(SRCS)' SWIG='$(SWIG)' \
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='example.i' LUA_INTERP='$(LUA_INTERP)' lua_static
-clean::
+clean:
$(MAKE) -f $(TOP)/Makefile lua_clean
-
-check: all
-
+ rm -f $(TARGET)