-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (37 loc) · 798 Bytes
/
Makefile
File metadata and controls
47 lines (37 loc) · 798 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
41
42
43
44
45
46
47
#
# Copyright 2019, Joyent, Inc.
#
#
# Tools
#
ISTANBUL := node_modules/.bin/istanbul
FAUCET := node_modules/.bin/faucet
NODE := node
NPM := npm
#
# Files
#
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
ESLINT_FILES = $(JS_FILES)
BUILD := node
include ./tools/mk/Makefile.defs
#
# Repo-specific targets
#
.PHONY: all
all: $(NPM_EXEC)
$(NPM) install
$(ISTANBUL): | $(NPM_EXEC)
$(NPM) install
$(FAUCET): | $(NPM_EXEC)
$(NPM) install
.PHONY: test
test: $(ISTANBUL) $(FAUCET)
$(NODE) $(ISTANBUL) cover --print none test/run.js | $(FAUCET)
CLEAN_FILES += ./node_modules ./build
include ./tools/mk/Makefile.deps
include ./tools/mk/Makefile.targ