Test uncaught throw, catchless try* . Fix 46 impls.
[jackhill/mal.git] / r / Makefile
index 4d1ec24..85e3247 100644 (file)
@@ -6,12 +6,27 @@ SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
 
 all: libs
 
+dist: mal.r mal
+
+mal.r: $(SOURCES)
+       cat $+ | grep -v " source(" > $@
+
+mal: mal.r
+       echo "#!/usr/bin/env Rscript" > $@
+       cat $< >> $@
+       chmod +x $@
+
+clean:
+       rm -f mal.r mal
+
 .PHONY: stats tests $(TESTS)
 
 stats: $(SOURCES)
        @wc $^
+       @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
 stats-lisp: $(SOURCES_LISP)
        @wc $^
+       @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*#|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
 
 
 .PHONY: