Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (35 sloc) 785 Bytes
#
# Copyright (c) 2012, 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
#
NPM = npm
CATEST = tools/catest
# javascriptlint and jsstyle should be installed in the environment
JSL = jsl
JSSTYLE = jsstyle
#
# Files
#
JS_FILES := $(shell find bin lib test -name '*.js')
JSL_CONF_NODE = tools/jsl.node.conf
JSL_FILES_NODE = $(JS_FILES)
JSSTYLE_FILES = $(JS_FILES)
JSTEST_FILES := $(shell find test -name 'tst.*.js')
#
# Repo-specific targets
#
.PHONY: all
all:
$(NPM) install
.PHONY: test
test:
$(CATEST) $(JSTEST_FILES)
include ./Makefile.targ