cons-lists/Makefile

26 lines
428 B
Makefile
Raw Normal View History

2015-05-13 23:20:16 +00:00
.PHONY: test
# docs: $(patsubst %.md,%.html,$(wildcard *.md))
targets = lists.js reduce.js
all: $(targets)
%.js: src/%.coffee
coffee -c -o . $<
2015-05-13 23:20:16 +00:00
%.html: %.md header.html footer.html
cat header.html > $@
pandoc $< >> $@
cat footer.html >> $@
node_modules: package.json
mkdir -p node_modules
npm install
test: node_modules
@node_modules/.bin/mocha --compilers coffee:coffee-script/register
clean:
rm -f $(targets)