LispInSmallPieces/Makefile

26 lines
458 B
Makefile
Raw Normal View History

2015-06-17 20:02:37 +00:00
.PHONY: test
# docs: $(patsubst %.md,%.html,$(wildcard *.md))
targets = lists.js reduce.js
all: $(targets)
%.js: src/%.coffee
node_modules/.bin/mocha coffee -c -o . $<
%.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
2015-06-17 20:49:15 +00:00
@./node_modules/.bin/mocha --recursive -R xunit test/ > test-reports.xml
2015-06-17 20:02:37 +00:00
clean:
rm -f $(targets)