diff options
| author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-04-15 19:37:07 +0100 |
|---|---|---|
| committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-04-19 22:47:27 +0100 |
| commit | 6a48eb5e4705c49f5004ed669c0c953351eaaf77 (patch) | |
| tree | 35036766ed3743bd89d502049d743ef398e2f19d /Examples/lua/embed | |
| parent | 695de9ee0e748347985a470f193c07f3320a2b58 (diff) | |
| download | swig-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/Makefile | 13 |
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) |
