-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile
53 lines (43 loc) · 1.13 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
#
# Copyright 2016 Joyent, Inc.
# Copyright 2023 MNX Cloud, Inc.
#
NAME = node-kstat
#
# This is a standalone node module.
#
ENGBLD_SKIP_VALIDATE_BUILDENV = true
#
# Tools
#
NODE := $(shell which node)
NPM := $(shell which npm)
TAPE := ./node_modules/.bin/tape
#
# Ensure we have the eng submodule before attempting to include it.
#
ENGBLD_REQUIRE := $(shell git submodule update --init deps/eng)
include ./deps/eng/tools/mk/Makefile.defs
TOP ?= $(error Unable to access eng.git submodule Makefiles.)
#
# Configuration used by Makefile.defs and Makefile.targ to generate
# "check" and "docs" targets.
#
JSON_FILES = package.json
JS_FILES := $(shell find examples test -name '*.js')
JSL_CONF_NODE = ./deps/eng/tools/jsl.node.conf
JSL_FILES_NODE = $(JS_FILES)
JSSTYLE_FILES = $(JS_FILES)
CLEAN_FILES += build
include ./deps/eng/tools/mk/Makefile.node_modules.defs
#
# Repo-specific targets
#
.PHONY: all
all: $(STAMP_NODE_MODULES)
.PHONY: test
test: $(STAMP_NODE_MODULES)
$(NODE) $(TAPE) test/*.js
include ./deps/eng/tools/mk/Makefile.deps
include ./deps/eng/tools/mk/Makefile.node_modules.targ
include ./deps/eng/tools/mk/Makefile.targ