aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2015-02-11 21:56:47 -0600
committerJoel Martin <github@martintribe.org>2015-02-11 21:56:47 -0600
commitc1fe72ae2b94d37cbf027aa185c27307d9776c56 (patch)
tree6826d1941743bf7d450b538bbcae86fb6749b8e9 /Makefile
parentff26ebdb816da07b28b29073868994fc7eabf8d1 (diff)
downloadmal-c1fe72ae2b94d37cbf027aa185c27307d9776c56.tar.gz
mal-c1fe72ae2b94d37cbf027aa185c27307d9776c56.zip
miniMAL: step1.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8d13bce..47c7829 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,8 @@ PYTHON = python
#
IMPLS = bash c clojure coffee cs forth go haskell java js lua make mal \
- ocaml matlab perl php ps python r racket ruby rust scala vb
+ ocaml matlab miniMAL perl php ps python r racket ruby rust \
+ scala vb
step0 = step0_repl
step1 = step1_read_print
@@ -64,6 +65,7 @@ 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
+miniMAL_STEP_TO_PROG = miniMAL/$($(1)).json
perl_STEP_TO_PROG = perl/$($(1)).pl
php_STEP_TO_PROG = php/$($(1)).php
ps_STEP_TO_PROG = ps/$($(1)).ps
@@ -96,6 +98,7 @@ mal_RUNSTEP = $(call $(MAL_IMPL)_RUNSTEP,$(1),$(call $(MAL_IMPL)_STEP_TO_PRO
ocaml_RUNSTEP = ../$(2) $(3)
matlab_args = $(subst $(SPACE),$(COMMA),$(foreach x,$(strip $(1)),'$(x)'))
matlab_RUNSTEP = matlab -nodisplay -nosplash -nodesktop -nojvm -r "$($(1))($(call matlab_args,$(3)));quit;"
+miniMAL_RUNSTEP = miniMAL ../$(2) $(3)
perl_RUNSTEP = perl ../$(2) --raw $(3)
php_RUNSTEP = php ../$(2) $(3)
ps_RUNSTEP = $(4)gs -q -I./ -dNODISPLAY -- ../$(2) $(3)$(4)