Clojure, Haxe: all target based on MODE.
authorJoel Martin <github@martintribe.org>
Tue, 12 Sep 2017 04:28:00 +0000 (23:28 -0500)
committerJoel Martin <github@martintribe.org>
Tue, 12 Sep 2017 04:28:00 +0000 (23:28 -0500)
clojure/Makefile
haxe/Makefile

index c77d1c2..f994b5e 100644 (file)
@@ -7,7 +7,7 @@ SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
 
 DEPS = $(if $(filter cljs,$(clojure_MODE)),node_modules,deps)
 
-dist: mal.jar mal
+dist: $(if $(filter cljs,$(clojure_MODE)),,mal.jar mal)
 
 deps:
        lein deps
index 6af11e2..0602c9e 100644 (file)
@@ -8,12 +8,12 @@ STEPS = step0_repl step1_read_print step2_eval step3_env \
        step4_if_fn_do step5_tco step6_file step7_quote \
        step8_macros step9_try stepA_mal
 
-haxe_MODE = neko
+haxe_MODE ?= neko
 dist_neko = mal.n
 dist_python = mal.py
 dist_cpp = cpp/mal
 
-all: all-neko all-python all-cpp all-js
+all: all-$(haxe_MODE)
 
 all-neko: $(foreach x,$(STEPS),$(x).n)