Merge pull request #358 from bjh21/bjh21-extra-tests
[jackhill/mal.git] / guile / Makefile
index bc7df96..993bd8c 100644 (file)
@@ -1,12 +1,17 @@
-SOURCES_BASE = types.scm reader.scm printer.scm
+SOURCES_BASE = readline.scm types.scm reader.scm printer.scm
 SOURCES_LISP = env.scm core.scm stepA_mal.scm
 SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
 
 all:
+       true
 
-.PHONY: stats
+dist: mal.scm
 
-stats: $(SOURCES)
-       @wc $^
-stats-lisp: $(SOURCES_LISP)
-       @wc $^
+mal.scm: $(SOURCES)
+       echo "#! /usr/bin/env guile" > $@
+       echo "!#" >> $@
+       cat $+ | sed $(foreach f,$(+),-e 's/(readline)//') >> $@
+       chmod +x $@
+
+clean:
+       rm -f mal.scm