blob: 7f8ef05165154555450ed01f182484d2781d01e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Copyright 2006-2022 Collabora Ltd.
# SPDX-License-Identifier: MIT
check-local::
@fail=0; \
cd $(srcdir) || exit $$?; \
if test -n "$(check_misc_sources)"; then \
echo check-coding-style.mk: checking misc sources...; \
top_srcdir=$(abs_top_srcdir) \
sh $(abs_top_srcdir)/tools/check-whitespace.sh \
$(check_misc_sources) || fail=1; \
fi; \
if test -n "$(check_py_sources)"; then \
echo check-coding-style.mk: checking Python sources...; \
top_srcdir=$(abs_top_srcdir) \
sh $(abs_top_srcdir)/tools/check-py-style.sh \
$(check_py_sources) || fail=1; \
fi;\
if test -n "$(check_c_sources)"; then \
echo check-coding-style.mk: checking C sources...; \
top_srcdir=$(abs_top_srcdir) \
sh $(abs_top_srcdir)/tools/check-c-style.sh \
$(check_c_sources) || fail=1; \
fi;\
if test yes = "@ENABLE_CODING_STYLE_CHECKS@"; then \
exit "$$fail";\
else \
exit 0;\
fi
|