HCoop
/
jackhill
/
mal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' into issue_166_string_ops
[jackhill/mal.git]
/
r
/
Makefile
diff --git
a/r/Makefile
b/r/Makefile
index
c1eec79
..
85e3247
100644
(file)
--- a/
r/Makefile
+++ b/
r/Makefile
@@
-6,6
+6,19
@@
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)