diff options
| author | Joel Martin <github@martintribe.org> | 2014-03-24 16:32:24 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-03-24 16:32:24 -0500 |
| commit | 3169070063b2cb877200117ebb384269d73bcb93 (patch) | |
| tree | 23de3db1ea5c37afd21a45b6ed7771f56a08c0c4 /js/Makefile | |
| download | mal-3169070063b2cb877200117ebb384269d73bcb93.tar.gz mal-3169070063b2cb877200117ebb384269d73bcb93.zip | |
Current state of mal for Clojure West lighting talk.
Diffstat (limited to 'js/Makefile')
| -rw-r--r-- | js/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/js/Makefile b/js/Makefile new file mode 100644 index 0000000..cb57644 --- /dev/null +++ b/js/Makefile @@ -0,0 +1,29 @@ + +TESTS = tests/types.js tests/reader.js tests/step5_tco.js + +SOURCES = node_readline.js types.js reader.js stepA_more.js +WEB_SOURCES = $(SOURCES:node_readline.js=josh_readline.js) + +all: mal.js mal_web.js + +mal.js: $(SOURCES) + echo "#!/usr/bin/env node" > $@ + cat $+ | grep -v "= *require('./" >> $@ + chmod +x $@ + +mal_web.js: $(WEB_SOURCES) + cat $+ | grep -v "= *require('./" > $@ + +clean: + rm -f mal.js mal_web.js + +.PHONY: stats tests $(TESTS) + +stats: $(SOURCES) + @wc $^ + +tests: $(TESTS) + +$(TESTS): + @echo "Running $@"; \ + node $@ || exit 1; \ |
