@@ -211,6 +211,8 @@ test-timers:
211
211
test-timers-clean :
212
212
$(MAKE ) --directory=tools clean
213
213
214
+
215
+ ifneq ("","$(wildcard deps/v8/tools/run-tests.py) ")
214
216
test-v8 :
215
217
# note: performs full test unless QUICKCHECK is specified
216
218
deps/v8/tools/run-tests.py --arch=$(V8_ARCH ) \
@@ -234,6 +236,12 @@ test-v8-benchmarks:
234
236
235
237
test-v8-all : test-v8 test-v8-intl test-v8-benchmarks
236
238
# runs all v8 tests
239
+ else
240
+ test-v8 test-v8-intl test-v8-benchmarks test-v8-all :
241
+ @echo " Testing v8 is not available through the source tarball."
242
+ @echo " Use the git repo instead:" \
243
+ " $ git clone https://github.com/nodejs/node.git"
244
+ endif
237
245
238
246
apidoc_sources = $(wildcard doc/api/* .markdown)
239
247
apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html ) ) \
@@ -427,12 +435,15 @@ $(TARBALL): release-only $(NODE_EXE) doc
427
435
mkdir -p $(TARNAME ) /doc/api
428
436
cp doc/node.1 $(TARNAME ) /doc/node.1
429
437
cp -r out/doc/api/* $(TARNAME ) /doc/api/
430
- rm -rf $(TARNAME ) /deps/v8/{test,samples,tools/profviz} # too big
438
+ rm -rf $(TARNAME ) /deps/v8/{test,samples,tools/profviz,tools/run-tests.py}
431
439
rm -rf $(TARNAME ) /doc/images # too big
432
440
rm -rf $(TARNAME ) /deps/uv/{docs,samples,test}
433
- rm -rf $(TARNAME ) /deps/openssl/{doc,demos,test}
441
+ rm -rf $(TARNAME ) /deps/openssl/openssl/ {doc,demos,test}
434
442
rm -rf $(TARNAME ) /deps/zlib/contrib # too big, unused
435
- rm -rf $(TARNAME ) /.github # github issue templates
443
+ rm -rf $(TARNAME ) /.{editorconfig,git* ,mailmap}
444
+ rm -rf $(TARNAME ) /tools/{eslint,eslint-rules,osx-pkg.pmdoc,pkgsrc}
445
+ rm -rf $(TARNAME ) /tools/{osx-* ,license-builder.sh,cpplint.py}
446
+ find $(TARNAME ) / -name " .eslint*" -maxdepth 2 | xargs rm
436
447
find $(TARNAME ) / -type l | xargs rm # annoying on windows
437
448
tar -cf $(TARNAME ) .tar $(TARNAME )
438
449
rm -rf $(TARNAME )
@@ -583,7 +594,7 @@ bench-idle:
583
594
584
595
jslint :
585
596
$(NODE ) tools/eslint/bin/eslint.js benchmark lib src test tools/doc \
586
- tools/eslint-rules --rulesdir tools/eslint-rules
597
+ tools/eslint-rules --rulesdir tools/eslint-rules
587
598
588
599
CPPLINT_EXCLUDE ?=
589
600
CPPLINT_EXCLUDE += src/node_lttng.cc
@@ -610,7 +621,14 @@ CPPLINT_FILES = $(filter-out $(CPPLINT_EXCLUDE), $(wildcard \
610
621
cpplint :
611
622
@$(PYTHON ) tools/cpplint.py $(CPPLINT_FILES )
612
623
624
+ ifneq ("","$(wildcard tools/eslint/bin/eslint.js) ")
613
625
lint : jslint cpplint
626
+ else
627
+ lint :
628
+ @echo " Linting is not available through the source tarball."
629
+ @echo " Use the git repo instead:" \
630
+ " $ git clone https://github.com/nodejs/node.git"
631
+ endif
614
632
615
633
.PHONY : lint cpplint jslint bench clean docopen docclean doc dist distclean \
616
634
check uninstall install install-includes install-bin all staticlib \
0 commit comments