forked from roman-neuhauser/studio_napi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
52 lines (37 loc) · 1.1 KB
/
GNUmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# make check is funneled through npm test to make sure
# mocha(1) is in $PATH even if it's only installed locally
# (npm adds <package_dir>/node_modules/.bin to $PATH)
MOCHA ?= mocha -C --compilers t.coffee:coffee-script \
--globals DELETE,GET,POST,PUT
SHELL = /bin/sh
RST2HTML ?= $(SHELL) tools/rst2html
export SHELL
htmlfiles = README.html NOTES.html examples.html reference.html
testfiles = $$(find tests -maxdepth 1 -name \*.t.coffee | sort) \
$$(find tests/lo -name \*.t.coffee | sort) \
$$(find tests/hi -name \*.t.coffee | sort)
e2efiles = $$(find drive -maxdepth 1 -name \*.t.coffee | sort) \
$$(find drive/lo -name \*.t.coffee | sort) \
$$(find drive/hi -name \*.t.coffee | sort)
wc:
npm install
@echo
@cat bootstrap.note
html: $(htmlfiles)
%.html: %.rest
$(RST2HTML) $< $@
check:
npm test
do-check:
$(MOCHA) $(testfiles)
drive:
npm run-script drive
do-drive:
$(MOCHA) --timeout 3000 $(e2efiles)
clean:
$(RM) $(htmlfiles)
MAKEFLAGS = --no-print-directory \
--no-builtin-rules \
--no-builtin-variables
.PHONY: check clean do-check do-drive drive html wc
# vim: ts=8 noet sw=2 sts=2