-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (32 loc) · 752 Bytes
/
Makefile
File metadata and controls
40 lines (32 loc) · 752 Bytes
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
#
# Copyright (c) 2012, Mark Cavage. All rights reserved.
#
# Tools
#
ISTANBUL := ./node_modules/.bin/istanbul
FAUCET := ./node_modules/.bin/faucet
NPM := npm
#
# Files
#
DOC_FILES = index.restdown
JS_FILES := $(shell find lib test -name '*.js')
JSL_CONF_NODE = tools/jsl.node.conf
JSL_FILES_NODE = $(JS_FILES)
JSSTYLE_FILES = $(JS_FILES)
JSSTYLE_FLAGS = -f tools/jsstyle.conf
include ./tools/mk/Makefile.defs
#
# Repo-specific targets
#
.PHONY: all
all: $(ISTANBUL) $(REPO_DEPS)
$(NPM) rebuild
$(ISTANBUL): | $(NPM_EXEC)
$(NPM) install
CLEAN_FILES += ./node_modules ./coverage
.PHONY: test
test: $(ISTANBUL)
$(ISTANBUL) cover --print none test/test.js | $(FAUCET)
include ./tools/mk/Makefile.deps
include ./tools/mk/Makefile.targ