summaryrefslogtreecommitdiff
path: root/Examples/octave/module_load
diff options
context:
space:
mode:
authorKarl Wette <karl.wette@ligo.org>2014-05-26 20:38:36 +0200
committerKarl Wette <karl.wette@ligo.org>2014-05-29 23:42:55 +0200
commitb2d492c15a0240d8954d3702a87f90eb34fd49fb (patch)
tree23e2764af6fbef075eefcf3bfb441710978fd107 /Examples/octave/module_load
parentebe13380158ad5f552405463287d3cb4cdecc8bd (diff)
downloadswig-b2d492c15a0240d8954d3702a87f90eb34fd49fb.tar.gz
Octave: use common example.mk for examples, patterned after javascript
Diffstat (limited to 'Examples/octave/module_load')
-rw-r--r--Examples/octave/module_load/Makefile23
1 files changed, 6 insertions, 17 deletions
diff --git a/Examples/octave/module_load/Makefile b/Examples/octave/module_load/Makefile
index 7b24a8530..d2cd66e70 100644
--- a/Examples/octave/module_load/Makefile
+++ b/Examples/octave/module_load/Makefile
@@ -1,18 +1,7 @@
-TOP = ../..
-SWIG = $(TOP)/../preinst-swig
-SRCS = example.c
-TARGET = swigexample
-INTERFACE = example.i
+SRCS = example.c
+TARGET = swigexample
+SWIGOPT = -module swigexample
+TARGET2 = swigexample2
+SWIGOPT2 = -module swigexample2 -globals .
-check: build
- $(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' octave_run
-
-build:
- $(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' SRCS='$(SRCS)' SWIG='$(SWIG)' \
- TARGET='$(TARGET)' SWIGOPT='-module $$(TARGET)' INTERFACE='$(INTERFACE)' octave
- $(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' SRCS='$(SRCS)' SWIG='$(SWIG)' \
- TARGET='$(TARGET)2' SWIGOPT='-module $$(TARGET) -globals .' INTERFACE='$(INTERFACE)' octave
-
-clean:
- $(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' octave_clean
- rm -f $(TARGET).m
+include $(SRCDIR)../example.mk