r: add step deps on rdyncall lib install.
authorJoel Martin <github@martintribe.org>
Mon, 15 Jul 2019 15:02:05 +0000 (10:02 -0500)
committerJoel Martin <github@martintribe.org>
Mon, 15 Jul 2019 15:02:05 +0000 (10:02 -0500)
r/Makefile

index f9ec4a7..1b7e65e 100644 (file)
@@ -2,6 +2,10 @@ SOURCES_BASE = readline.r types.r reader.r printer.r
 SOURCES_LISP = env.r core.r stepA_mal.r
 SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
 
+STEPS = step0_repl.r step1_read_print.r step2_eval.r step3_env.r \
+       step4_if_fn_do.r step5_tco.r step6_file.r \
+       step7_quote.r step8_macros.r step9_try.r stepA_mal.r
+
 all: libs
 
 dist: mal.r mal
@@ -14,8 +18,7 @@ mal: mal.r
        cat $< >> $@
        chmod +x $@
 
-clean:
-       rm -f mal.r mal
+$(STEPS): libs
 
 .PHONY:
 libs: lib/rdyncall
@@ -25,3 +28,8 @@ lib/rdyncall:
        mkdir -p lib
        R CMD INSTALL rdyncall_0.7.5.tar.gz -l lib/
        rm rdyncall_0.7.5.tar.gz
+
+clean:
+       rm -f mal.r mal
+
+