aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2015-02-07 20:32:06 -0600
committerJoel Martin <github@martintribe.org>2015-02-07 20:32:24 -0600
commit9a54ea186c2c7646d014b97774adfc418e9ab9c9 (patch)
tree7fcb4abf81594a0075c5356724140e65554eefe6 /Makefile
parent882b43289ecc0c13a030605b68be52107b1c64b5 (diff)
downloadmal-9a54ea186c2c7646d014b97774adfc418e9ab9c9.tar.gz
mal-9a54ea186c2c7646d014b97774adfc418e9ab9c9.zip
matlab: step0 and step1 basics.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 63fd693..fed88b5 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ PYTHON = python
#
IMPLS = bash c clojure coffee cs go haskell java js lua make mal \
- ocaml perl php ps python r racket ruby rust scala vb
+ ocaml matlab perl php ps python r racket ruby rust scala vb
step0 = step0_repl
step1 = step1_read_print
@@ -62,6 +62,7 @@ lua_STEP_TO_PROG = lua/$($(1)).lua
make_STEP_TO_PROG = make/$($(1)).mk
mal_STEP_TO_PROG = mal/$($(1)).mal
ocaml_STEP_TO_PROG = ocaml/$($(1))
+matlab_STEP_TO_PROG = matlab/$($(1)).m
perl_STEP_TO_PROG = perl/$($(1)).pl
php_STEP_TO_PROG = php/$($(1)).php
ps_STEP_TO_PROG = ps/$($(1)).ps
@@ -87,6 +88,7 @@ lua_RUNSTEP = ../$(2) $(3)
make_RUNSTEP = make -f ../$(2) $(3)
mal_RUNSTEP = $(call $(MAL_IMPL)_RUNSTEP,$(1),$(call $(MAL_IMPL)_STEP_TO_PROG,stepA),../$(2),") #"
ocaml_RUNSTEP = ../$(2) $(3)
+matlab_RUNSTEP = matlab -nodisplay -nosplash -nodesktop -nojvm -r "run('../$(2)');quit;"
perl_RUNSTEP = perl ../$(2) --raw $(3)
php_RUNSTEP = php ../$(2) $(3)
ps_RUNSTEP = $(4)gs -q -I./ -dNODISPLAY -- ../$(2) $(3)$(4)