aboutsummaryrefslogblamecommitdiffstats
path: root/tools/check-coding-style.mk
blob: 1c0a60f660f6d5bbc584da4c2bec1a828728a4e7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                   



                                                      
                                                                                  



                                                         
                                                                               





                                                             
check-coding-style:
    @fail=0; \
    if test -n "$(check_misc_sources)"; then \
        tools_dir=$(top_srcdir)/tools \
        sh $(top_srcdir)/tools/check-misc.sh \
            $(addprefix $(srcdir)/,$(check_misc_sources)) || fail=1; \
    fi; \
    if test -n "$(check_c_sources)"; then \
        tools_dir=$(top_srcdir)/tools \
        sh $(top_srcdir)/tools/check-c-style.sh \
            $(addprefix $(srcdir)/,$(check_c_sources)) || fail=1; \
    fi;\
    if test yes = "$(ENABLE_CODING_STYLE_CHECKS)"; then \
        exit "$$fail";\
    else \
        exit 0;\
    fi