-
Notifications
You must be signed in to change notification settings - Fork 33
/
Makefile
54 lines (46 loc) · 1.06 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
PREFIX ?= /usr/local
LIB_PREFIX = ~/.node_libraries
DOCS = docs/index.md \
docs/install.md \
docs/api.md \
docs/tutorial-prowl.md \
docs/aws_install.md \
docs/install_joyent.md \
docs/configuration.md \
docs/cron-jobs.md \
docs/editor.md \
docs/webhooks.md \
docs/redirect-url.md \
docs/simpleflow.md \
docs/stack.md \
docs/tutorial-postbin.md \
docs/tutorial-mailhooks.md \
docs/custom-modules.md \
docs/custom-modules-ui.md \
docs/custom-modules-js.md \
docs/custom-modules-packages.md \
docs/contribute.md \
docs/activities.md \
docs/public-run.md \
docs/templates.md \
docs/tutorial-wordpress.md
HTMLDOCS =$(DOCS:.md=.html)
docs: $(HTMLDOCS)
@ echo "... generating TOC"
%.html: %.md
@echo "... $< -> $@"
@ronn -5 --pipe --fragment $< \
| cat docs/layout/head.html - docs/layout/foot.html \
| sed 's/NAME/Webhookit/g' \
> $@
docclean:
rm -f docs/*.html
test:
@NODE_ENV=test expresso \
-I lib \
-I app \
$(TESTFLAGS) \
test/*.test.js
test-cov:
@TESTFLAGS=--cov $(MAKE) test
.PHONY: docs docclean test test-cov