LispInSmallPieces/Makefile

30 lines
640 B
Makefile
Raw Normal View History

2015-06-17 20:02:37 +00:00
.PHONY: test
# docs: $(patsubst %.md,%.html,$(wildcard *.md))
2015-06-17 20:55:58 +00:00
2015-06-17 20:02:37 +00:00
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
2015-06-17 20:55:58 +00:00
test: clean node_modules
@JUNIT_REPORT_PATH=test-reports.xml JUNIT_REPORT_STACK=1 ./node_modules/.bin/mocha \
--reporter mocha-jenkins-reporter --compilers coffee:coffee-script/register || true
ltest: node_modules
@node_modules/.bin/mocha --compilers coffee:coffee-script/register
2015-06-17 20:02:37 +00:00
clean:
2015-06-17 20:55:58 +00:00
rm -f report.xml test-reports.xml