oncrpc
Version:
Library for creating ONC RPC Node.js servers and clients
42 lines (33 loc) • 670 B
Plain Text
#
# Copyright (c) 2013, Joyent, Inc. All rights reserved.
#
#
# Tools
#
NPM := npm
TAP := ./node_modules/.bin/tap
#
# Files
#
DOC_FILES = index.restdown
JS_FILES := $(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
include ./tools/mk/Makefile.defs
#
# Repo-specific targets
#
all: | $(TAP) $(REPO_DEPS)
$(NPM) rebuild
$(TAP): | $(NPM_EXEC)
$(NPM) install
CLEAN_FILES += $(TAP) ./node_modules
test: $(TAP)
$(NPM) test
include ./tools/mk/Makefile.deps
include ./tools/mk/Makefile.targ