Blame tools/check-coding-style.mk
|
Packit |
130fc8 |
check-local::
|
|
Packit |
130fc8 |
@fail=0; \
|
|
Packit |
130fc8 |
cd $(srcdir) || exit $$?; \
|
|
Packit |
130fc8 |
if test -n "$(check_misc_sources)"; then \
|
|
Packit |
130fc8 |
echo check-coding-style.mk: checking misc sources...; \
|
|
Packit |
130fc8 |
top_srcdir=$(abs_top_srcdir) \
|
|
Packit |
130fc8 |
sh $(abs_top_srcdir)/tools/check-whitespace.sh \
|
|
Packit |
130fc8 |
$(check_misc_sources) || fail=1; \
|
|
Packit |
130fc8 |
fi; \
|
|
Packit |
130fc8 |
if test -n "$(check_py_sources)"; then \
|
|
Packit |
130fc8 |
echo check-coding-style.mk: checking Python sources...; \
|
|
Packit |
130fc8 |
top_srcdir=$(abs_top_srcdir) \
|
|
Packit |
130fc8 |
sh $(abs_top_srcdir)/tools/check-py-style.sh \
|
|
Packit |
130fc8 |
$(check_py_sources) || fail=1; \
|
|
Packit |
130fc8 |
fi;\
|
|
Packit |
130fc8 |
if test -n "$(check_c_sources)"; then \
|
|
Packit |
130fc8 |
echo check-coding-style.mk: checking C sources...; \
|
|
Packit |
130fc8 |
top_srcdir=$(abs_top_srcdir) \
|
|
Packit |
130fc8 |
sh $(abs_top_srcdir)/tools/check-c-style.sh \
|
|
Packit |
130fc8 |
$(check_c_sources) || fail=1; \
|
|
Packit |
130fc8 |
fi;\
|
|
Packit |
130fc8 |
if test yes = "@ENABLE_CODING_STYLE_CHECKS@"; then \
|
|
Packit |
130fc8 |
exit "$$fail";\
|
|
Packit |
130fc8 |
else \
|
|
Packit |
130fc8 |
exit 0;\
|
|
Packit |
130fc8 |
fi
|