Updated Octave module_load examples for new module loading

- Module compiled twice to check '-globals .' behaviour
- Only one runme.m needed since clearing modules should
  now be safe for all Octave versions.
- Tests new module loading syntax and behaviour

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Karl Wette 2012-05-14 09:24:34 +00:00
commit daffde6c28
9 changed files with 118 additions and 288 deletions

View file

@ -3,16 +3,12 @@ SWIG = $(TOP)/../preinst-swig
SRCS = example.c
TARGET = example
INTERFACE = example.i
OCTSCRIPTS = \
runme_args.m \
runme_gl_func.m \
runme_gl_func_base.m \
runme_nogl_func.m \
runme_nogl_func_base.m
all::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' octave
TARGET='$(TARGET)' SWIGOPT='-module $$(TARGET)' INTERFACE='$(INTERFACE)' octave
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)2' SWIGOPT='-module $$(TARGET) -globals .' INTERFACE='$(INTERFACE)' octave
static::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
@ -23,4 +19,4 @@ clean::
rm -f $(TARGET).m
check: all
$(MAKE) -f $(TOP)/Makefile OCTSCRIPT="$(OCTSCRIPTS)" octave_run
$(MAKE) -f $(TOP)/Makefile octave_run