File: Makefile

package info (click to toggle)
node-nan 2.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,212 kB
  • ctags: 1,658
  • sloc: cpp: 6,307; python: 3,105; ansic: 1,314; makefile: 104; sh: 33
file content (104 lines) | stat: -rw-r--r-- 3,136 bytes parent folder | download
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
TOPLEVEL ?= $(dir $(lastword $(MAKEFILE_LIST)))
CPPLINT ?= $(TOPLEVEL)/cpplint.py
PYTHON ?= python
BUILDTYPE ?= Release
MODULES = symbols strings
SOURCES = $(MODULES:%=test/cpp/%.cpp)
ADDONS = $(MODULES:%=test/build/$(BUILDTYPE)/%.node)

LINT_SOURCES = \
	examples/async_pi_estimate/addon.cc \
	examples/async_pi_estimate/async.cc \
	examples/async_pi_estimate/async.h \
	examples/async_pi_estimate/pi_est.cc \
	examples/async_pi_estimate/pi_est.h \
	examples/async_pi_estimate/sync.cc \
	examples/async_pi_estimate/sync.h \
	nan.h \
	nan_callbacks.h \
	nan_callbacks_12_inl.h \
	nan_callbacks_pre_12_inl.h \
	nan_converters.h \
	nan_converters_43_inl.h \
	nan_converters_pre_43_inl.h \
	nan_implementation_12_inl.h \
	nan_implementation_pre_12_inl.h \
	nan_maybe_43_inl.h \
	nan_maybe_pre_43_inl.h \
	nan_new.h \
	nan_object_wrap.h \
	nan_persistent_12_inl.h \
	nan_persistent_pre_12_inl.h \
	nan_string_bytes.h \
	nan_weak.h \
	test/cpp/accessors.cpp \
	test/cpp/accessors2.cpp \
	test/cpp/asyncworker.cpp \
	test/cpp/asyncprogressworker.cpp \
	test/cpp/asyncprogressworkerstream.cpp \
	test/cpp/asyncprogressworkersignal.cpp \
	test/cpp/asyncworkererror.cpp \
	test/cpp/buffer.cpp \
	test/cpp/bufferworkerpersistent.cpp \
	test/cpp/error.cpp \
	test/cpp/gc.cpp \
	test/cpp/indexedinterceptors.cpp \
	test/cpp/isolatedata.cpp \
	test/cpp/makecallback.cpp \
	test/cpp/morenews.cpp \
	test/cpp/converters.cpp \
	test/cpp/isolatedata.cpp \
	test/cpp/makecallback.cpp \
	test/cpp/morenews.cpp \
	test/cpp/multifile1.cpp \
	test/cpp/multifile2.cpp \
	test/cpp/multifile2.h \
	test/cpp/namedinterceptors.cpp \
	test/cpp/nancallback.cpp \
	test/cpp/nannew.cpp \
	test/cpp/news.cpp \
	test/cpp/objectwraphandle.cpp \
	test/cpp/persistent.cpp \
	test/cpp/returnemptystring.cpp \
	test/cpp/returnnull.cpp \
	test/cpp/returnundefined.cpp \
	test/cpp/returnvalue.cpp \
	test/cpp/setcallhandler.cpp \
	test/cpp/settemplate.cpp \
	test/cpp/strings.cpp \
	test/cpp/symbols.cpp \
	test/cpp/threadlocal.cpp \
	test/cpp/trycatch.cpp \
	test/cpp/weak.cpp \
	test/cpp/weak2.cpp \
	test/cpp/wrappedobjectfactory.cpp \
	node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc

FILTER = -whitespace/parens

.PHONY: lint

lint:
	cd $(TOPLEVEL) && $(PYTHON) $(CPPLINT) --filter=$(FILTER) $(LINT_SOURCES)

test: $(ADDONS)
	npm test

forcetest:
	cd test && ../node_modules/.bin/node-gyp rebuild && cd ..
	npm test

docs: README.md doc/.build.sh doc/asyncworker.md doc/buffers.md doc/callback.md \
		doc/converters.md doc/errors.md doc/maybe_types.md doc/methods.md doc/new.md \
		doc/node_misc.md doc/persistent.md doc/scopes.md doc/script.md doc/string_bytes.md \
		doc/v8_internals.md doc/v8_misc.md
	doc/.build.sh


$(ADDONS): nan.h nan_new.h nan_implementation_pre_12_inl.h nan_implementation_12_inl.h \
		nan_callbacks.h nan_callbacks_12_inl.h nan_callbacks_pre_12_inl.h \
		nan_converters.h nan_converters_43_inl.h nan_converters_pre_43_inl.h \
		nan_maybe_43_inl.h nan_maybe_pre_43_inl.h \
		nan_persistent_12_inl.h nan_persistent_pre_12_inl.h nan_weak.h \
		nan_string_bytes.h test/binding.gyp $(SOURCES)
	cd test/ && ../node_modules/.bin/node-gyp rebuild