~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to config/lint-source.am

  • Committer: Brian Aker
  • Date: 2009-11-25 07:05:58 UTC
  • mfrom: (1192.3.39 pandora-build)
  • Revision ID: brian@gaz-20091125070558-mzf1m5etiwb841jb
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
4
SUFFIXES = .cc.linted .h.linted
 
5
.cc.cc.linted:
 
6
        @test -d `dirname $@` || mkdir -p `dirname $@`
 
7
        $(LINT_COMMAND) --deps $@ $<
 
8
 
 
9
# make a dep file from a h by linting
 
10
.h.h.linted:
 
11
        @test -d `dirname $@` || mkdir -p `dirname $@`
 
12
        $(LINT_COMMAND) --deps $@ $<
 
13
 
 
14
clean-local: cleanlints
 
15
 
 
16
 
 
17
check-local: linted ${srcdir}/config/lint-rules.am
 
18
 
 
19
# Build the things to lint dynamically
 
20
${srcdir}/config/lint-rules.am: lint-rules-gen
 
21
        @# Make make think it did something so it sees the file changed.
 
22
 
 
23
# This is a ChangeProtected output
 
24
lint-rules-gen:
 
25
        srcdir=${srcdir} ${top_srcdir}/config/make-lint.py
 
26
 
 
27
.PHONY: cleanlints lint-rules-gen
 
28
 
 
29
# dynamic rules
 
30
include config/lint-rules.am