Octave: use common example.mk for examples, patterned after javascript

This commit is contained in:
Karl Wette 2014-05-26 20:38:36 +02:00
commit b2d492c15a
17 changed files with 68 additions and 245 deletions

View file

@ -1,17 +1,3 @@
TOP = ../..
SWIG = $(TOP)/../preinst-swig
CXXSRCS = example.cxx
TARGET = swigexample
INTERFACE = example.i
LIBS = -lm
SWIGOPT =
CXXSRCS = example.cxx
check: build
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' octave_run
build:
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' octave_cpp
clean:
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' octave_clean
include $(SRCDIR)../example.mk