forked from restify/node-restify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (38 loc) · 795 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 (c) 2012, Joyent, Inc. All rights reserved.
#
# Makefile: basic Makefile for restify
#
#
# Tools
#
NPM := $(shell which npm)
TAP := ./node_modules/.bin/tap
#
# Files
#
DOC_FILES = index.restdown
JS_FILES := $(shell find lib test -name '*.js')
JSL_CONF_NODE = tools/jsl.node.conf
JSL_FILES_NODE = $(JS_FILES)
JSSTYLE_FILES = $(JS_FILES)
JSSTYLE_FLAGS = -f tools/jsstyle.conf
#
# Repo-specific targets
#
.PHONY: all
all: test check
.PHONY: release
release: prepush $(CUTARELEASE)
python $(CUTARELEASE) -f package.json
.PHONY: setup
setup: $(NPM)
$(NPM) install
.PHONY: test
test: setup $(TAP)
$(TAP) test/*.test.js
.PHONY: cutarelease
cutarelease:
./deps/cutarelease/cutarelease.py -v -p restify -f package.json
include ./Makefile.deps
include ./Makefile.targ