1192.6.2
by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files. |
1 |
LINT_COMMAND=python ${top_srcdir}/extra/cpplint.py --filter=-whitespace,-runtime,-readability,+legal,-build,+build/header_guard,+build/include_config,+build/namespaces |
2 |
||
3 |
# make a dep file from a cc by linting |
|
1192.3.55
by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles. |
4 |
SUFFIXES += .cc.linted .h.linted |
1192.3.38
by Monty Taylor
Fixed the linting. |
5 |
.cc.cc.linted: |
1192.6.2
by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files. |
6 |
@test -d `dirname $@` || mkdir -p `dirname $@` |
7 |
$(LINT_COMMAND) --deps $@ $<
|
|
8 |
||
9 |
# make a dep file from a h by linting |
|
1192.3.38
by Monty Taylor
Fixed the linting. |
10 |
.h.h.linted: |
1192.6.2
by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files. |
11 |
@test -d `dirname $@` || mkdir -p `dirname $@` |
12 |
$(LINT_COMMAND) --deps $@ $<
|
|
13 |
||
14 |
clean-local: cleanlints |
|
15 |
||
16 |
||
1471.3.1
by Monty Taylor
Latest pandora-build. Moves the lint check to only run distcheck. |
17 |
installcheck-local: linted ${srcdir}/config/lint-rules.am |
1192.6.2
by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files. |
18 |
|
1192.3.52
by Monty Taylor
Merged in linted: rule from Robert. |
19 |
linted:
|
20 |
||
1192.6.2
by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files. |
21 |
# Build the things to lint dynamically |
22 |
${srcdir}/config/lint-rules.am: lint-rules-gen |
|
23 |
@# Make make think it did something so it sees the file changed. |
|
24 |
||
25 |
# This is a ChangeProtected output |
|
26 |
lint-rules-gen:
|
|
27 |
srcdir=${srcdir} ${top_srcdir}/config/make-lint.py |
|
28 |
||
1192.3.52
by Monty Taylor
Merged in linted: rule from Robert. |
29 |
.PHONY: cleanlints linted lint-rules-gen |
1192.6.2
by Robert Collins
Merged in lifeless' fix for parallel lint and only linting changed files. |
30 |
|
31 |
# dynamic rules |
|
32 |
include config/lint-rules.am |