Skip to content
This repository
Browse code

Cleanup Makefile for JSLint, CPPLint

  • Loading branch information...
commit a1138c6f2ae1c8840caeea37526626b1c3f6f1a5 1 parent dd53cee
Micheil Smith miksago authored ry committed

Showing 1 changed file with 6 additions and 9 deletions. Show diff stats Hide diff stats

  1. +6 9 Makefile
15 Makefile
@@ -113,7 +113,7 @@ TARNAME=node-$(VERSION)
113 113
114 114 #dist: doc/node.1 doc/api
115 115 dist: doc
116   - git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
  116 + git archive --format=tar --prefix=$(TARNAME)/ HEAD | tar xf -
117 117 mkdir -p $(TARNAME)/doc
118 118 cp doc/node.1 $(TARNAME)/doc/node.1
119 119 cp -r build/doc/api $(TARNAME)/doc/api
@@ -130,17 +130,14 @@ bench-idle:
130 130 sleep 1
131 131 ./node benchmark/idle_clients.js &
132 132
133   -# TODO lint the test directories and src/node.js
  133 +GJSLINT = PYTHONPATH=tools/closure_linter/ \
  134 + python tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc
  135 +
134 136 jslint:
135   - @for i in lib/*.js; do \
136   - PYTHONPATH=tools/closure_linter/ python tools/closure_linter/closure_linter/gjslint.py \
137   - --unix_mode --strict --nojsdoc $$i || exit 1; \
138   - done
  137 + $(GJSLINT) -r lib/ -r src/ -r test/
139 138
140 139 cpplint:
141   - @for i in src/*.cc src/*.h src/*.c; do \
142   - python tools/cpplint.py $$i || exit 1; \
143   - done
  140 + @python tools/cpplint.py $(wildcard src/*.cc src/*.h src/*.c)
144 141
145 142 lint: jslint cpplint
146 143

0 comments on commit a1138c6

Please sign in to comment.
Something went wrong with that request. Please try again.