forked from Automattic/mongoose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (30 loc) · 939 Bytes
/
Makefile
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
TESTS = $(shell find test/ -name '*.test.js')
DOCS_ = $(shell find lib/ -name '*.js')
DOCS = $(DOCS_:.js=.json)
DOCFILE = docs/source/_docs
test:
@node test/dropdb.js
@./node_modules/.bin/mocha $(T) --async-only $(TESTS)
@node test/dropdb.js
test-short:
@node test/dropdb.js
@./node_modules/.bin/mocha $(T) -g LONG -i --async-only $(TESTS)
@node test/dropdb.js
test-long:
@./node_modules/.bin/mocha $(T) -g LONG --async-only $(TESTS)
docs: ghpages docclean gendocs
docs_from_master: docclean gendocs
gendocs: $(DOCFILE)
$(DOCFILE): $(DOCS)
node website.js
%.json: %.js
@echo "\n### $(patsubst lib//%,lib/%, $^)" >> $(DOCFILE)
./node_modules/dox/bin/dox < $^ >> $(DOCFILE)
site:
node website.js && node static.js
ghpages:
git checkout gh-pages && git merge 3.6.x
docclean:
rm -f ./docs/*.{1,html,json}
rm -f ./docs/source/_docs
.PHONY: test test-short test-long ghpages site docs docclean gendocs docs_from_master