-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile
47 lines (38 loc) · 831 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
43
44
45
46
47
#
# Copyright 2018, Joyent, Inc.
#
# Makefile: for the SDC nfs service
#
#
# Tools
#
NODEUNIT := ./node_modules/.bin/nodeunit
#
# Files
#
DOC_FILES = index.restdown
JS_FILES := $(shell ls *.js) $(shell find lib test -name '*.js')
JSON_FILES = package.json
JSL_CONF_NODE = tools/jsl.node.conf
JSL_FILES_NODE = $(JS_FILES)
JSSTYLE_FILES = $(JS_FILES)
JSSTYLE_FLAGS = -f tools/jsstyle.conf
NPM := npm
include ./tools/mk/Makefile.defs
include ./tools/mk/Makefile.smf.defs
#
# Repo-specific targets
#
.PHONY: all
all: $(NODEUNIT) $(REPO_DEPS)
$(NPM) rebuild
$(NODEUNIT): | $(NPM_EXEC)
$(NPM) install
CLEAN_FILES += ./node_modules
.PHONY: test
test: $(NODEUNIT)
# XXX write new tests
# $(NODEUNIT) test/*.test.js
include ./tools/mk/Makefile.deps
include ./tools/mk/Makefile.smf.targ
include ./tools/mk/Makefile.targ