Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 #
6
7 #
8 # Copyright 2015, Joyent, Inc.
9 #
10
11 NPM = npm
12
13 JS_FILES := $(shell find assert.js tests/ -name '*.js')
14
15 JSL_CONF = tools/jsl.node.conf
16 JSSTYLE_FLAGS = -f tools/jsstyle.conf
17
18 JSL_EXEC ?= deps/javascriptlint/build/install/jsl
19 JSSTYLE_EXEC ?= deps/jsstyle/jsstyle
20 JSL ?= $(JSL_EXEC)
21 JSSTYLE ?= $(JSSTYLE_EXEC)
22
23 .PHONY: install
24 install:
25 $(NPM) install
26
27 .PHONY: clean
28 clean:
29 rm -rf node_modules coverage
30
31 .PHONY: test
32 test: install
33 npm test
34
35 .PHONY: check
36 check: $(JSL_EXEC) $(JSSTYLE_EXEC)
37 $(JSL) --conf $(JSL_CONF) $(JS_FILES)
38 $(JSSTYLE) $(JSSTYLE_FLAGS) $(JS_FILES)
39
40 .PHONY: prepush
41 prepush: check test
42
43
44 $(JSL_EXEC): | deps/javascriptlint/.git
45 cd deps/javascriptlint && make install
46
47 $(JSSTYLE_EXEC): | deps/jsstyle/.git
48
49 .SECONDARY: $($(wildcard deps/*):%=%/.git)
50
51 deps/%/.git:
52 git submodule update --init deps/$*