-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
51 lines (44 loc) · 1.14 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
#
# Copyright (c) 2016, Joyent, Inc. All rights reserved.
#
# Makefile: top-level Makefile
#
# This Makefile contains only repo-specific logic and uses included makefiles
# to supply common targets (javascriptlint, jsstyle, restdown, etc.), which are
# used by other repos as well.
#
#
# Tools
#
CATEST = deps/catest/catest
NPM = npm
NODE = node
#
# Files
#
JSON_FILES = package.json
BASH_FILES = $(wildcard test/*.sh)
JS_FILES := bin/fastbench \
bin/fastcall \
bin/fastserve \
$(shell find lib test -name '*.js' | \
grep -v ^test/compat/node_modules)
CATEST_FILES = $(shell find test -name 'tst.*.js' | \
grep -v ^test/compat/node_modules)
JSL_FILES_NODE = $(JS_FILES)
JSSTYLE_FILES = $(JS_FILES)
JSL_CONF_NODE = tools/jsl.node.conf
include ./test/compat/Makefile.compat.defs
.PHONY: all
all:
$(NPM) install
CLEAN_FILES += node_modules
.PHONY: test
test: | $(CATEST)
$(CATEST) $(CATEST_FILES)
@echo Note: Compatibility tests need to be run manually with \
\"make test-compat\".
$(CATEST): deps/catest/.git
include ./tools/mk/Makefile.deps
include ./tools/mk/Makefile.targ
include ./test/compat/Makefile.compat.targ