Initial import package dbus-python: D-Bus Python Bindings
[profile/ivi/dbus-python.git] / tools / check-coding-style.mk
1 check-local::
2         @fail=0; \
3         cd $(srcdir) || exit $$?; \
4         if test -n "$(check_misc_sources)"; then \
5                 echo check-coding-style.mk: checking misc sources...; \
6                 top_srcdir=$(top_srcdir) \
7                 sh $(top_srcdir)/tools/check-whitespace.sh \
8                         $(check_misc_sources) || fail=1; \
9         fi; \
10         if test -n "$(check_py_sources)"; then \
11                 echo check-coding-style.mk: checking Python sources...; \
12                 top_srcdir=$(top_srcdir) \
13                 sh $(top_srcdir)/tools/check-py-style.sh \
14                         $(check_py_sources) || fail=1; \
15         fi;\
16         if test -n "$(check_c_sources)"; then \
17                 echo check-coding-style.mk: checking C sources...; \
18                 top_srcdir=$(top_srcdir) \
19                 sh $(top_srcdir)/tools/check-c-style.sh \
20                         $(check_c_sources) || fail=1; \
21         fi;\
22         if test yes = "@ENABLE_CODING_STYLE_CHECKS@"; then \
23                 exit "$$fail";\
24         else \
25                 exit 0;\
26         fi