blob: e897fac0358b8b42a55a3e69656aca11de1a386d (
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
29
30
31
32
33
34
35
36
37
38
|
# Copyright, the authors of the Linux man-pages project
# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
ifndef MAKEFILE_LINT_C_CPPLINT_INCLUDED
MAKEFILE_LINT_C_CPPLINT_INCLUDED := 1
include $(MAKEFILEDIR)/build/examples/src.mk
include $(MAKEFILEDIR)/configure/build-depends/coreutils/touch.mk
include $(MAKEFILEDIR)/configure/build-depends/cpplint/cpplint.mk
ext := .lint-c.cpplint.touch
tgts_EX := $(patsubst %, %$(ext), $(_EX_TU_src))
tgts := $(tgts_EX)
$(tgts_EX): %$(ext): %
$(tgts): $(CPPLINT_CONF) $(MK) | $$(@D)/
$(tgts):
$(info $(INFO_)CPPLINT $@)
$(CPPLINT) $(CPPLINTFLAGS_) $< >/dev/null
$(TOUCH) $@
.PHONY: lint-c-cpplint
lint-c-cpplint: $(tgts);
undefine ext
undefine tgts_EX
undefine tgts
endif # include guard
|