ext := .lint-c.checkpatch.touch
xfail := $(MAKEFILEDIR)/lint/c/iwyu.xfail
-tgts := $(patsubst %, %$(ext), $(_EX_TU_src))
+tgts_EX := $(patsubst %, %$(ext), $(_EX_TU_src))
ifeq ($(SKIP_XFAIL),yes)
-tgts := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tgts))
+tgts_EX := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tgts_EX))
endif
+tgts := $(tgts_EX)
-_LINT_c_EX_checkpatch := $(tgts)
-_LINT_c_checkpatch := $(_LINT_c_EX_checkpatch)
+$(tgts_EX): %.lint-c.checkpatch.touch: %
+$(tgts): $(CHECKPATCH_CONF) $(MK) | $$(@D)/
-$(_LINT_c_EX_checkpatch): %.lint-c.checkpatch.touch: %
-$(_LINT_c_checkpatch): $(CHECKPATCH_CONF) $(MK) | $$(@D)/
-
-$(_LINT_c_checkpatch):
+$(tgts):
$(info $(INFO_)CHECKPATCH $@)
$(CHECKPATCH) $(CHECKPATCHFLAGS_) -f $< >&2
$(TOUCH) $@
.PHONY: lint-c-checkpatch
-lint-c-checkpatch: $(_LINT_c_checkpatch);
+lint-c-checkpatch: $(tgts);
undefine ext
undefine xfail
+undefine tgts_EX
undefine tgts
ext := .lint-c.clang-tidy.touch
xfail := $(MAKEFILEDIR)/lint/c/clang-tidy.xfail
-tgts := $(patsubst %, %$(ext), $(_EX_TU_src))
+tgts_EX := $(patsubst %, %$(ext), $(_EX_TU_src))
ifeq ($(SKIP_XFAIL),yes)
-tgts := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tgts))
+tgts_EX := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tgts_EX))
endif
+tgts := $(tgts_EX)
-_LINT_c_EX_clang_tidy := $(tgts)
-_LINT_c_clang_tidy := $(_LINT_c_EX_clang_tidy)
+$(tgts_EX): %.lint-c.clang-tidy.touch: %
+$(tgts): $(CLANG_TIDY_CONF) $(MK) | $$(@D)/
-$(_LINT_c_EX_clang_tidy): %.lint-c.clang-tidy.touch: %
-$(_LINT_c_clang_tidy): $(CLANG_TIDY_CONF) $(MK) | $$(@D)/
-
-$(_LINT_c_clang_tidy):
+$(tgts):
$(info $(INFO_)CLANG_TIDY $@)
$(CLANG_TIDY) $(CLANG_TIDYFLAGS_) $< -- $(CLANGFLAGS_) $(CPPFLAGS_) 2>&1 \
| $(SED) '/generated\.$$/d' >&2
.PHONY: lint-c-clang-tidy
-lint-c-clang-tidy: $(_LINT_c_clang_tidy);
+lint-c-clang-tidy: $(tgts);
undefine ext
undefine xfail
+undefine tgts_EX
undefine tgts
ext := .lint-c.cppcheck.touch
xfail := $(MAKEFILEDIR)/lint/c/cppcheck.xfail
-tgts := $(patsubst %, %$(ext), $(_EX_TU_src))
+tgts_EX := $(patsubst %, %$(ext), $(_EX_TU_src))
ifeq ($(SKIP_XFAIL),yes)
-tgts := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tgts))
+tgts_EX := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tgts_EX))
endif
+tgts := $(tgts_EX)
-_LINT_c_EX_cppcheck := $(tgts)
-_LINT_c_cppcheck := $(_LINT_c_EX_cppcheck)
+$(tgts_EX): %.lint-c.cppcheck.touch: %
+$(tgts): $(CPPCHECK_SUPPRESS) $(MK) | $$(@D)/
-$(_LINT_c_EX_cppcheck): %.lint-c.cppcheck.touch: %
-$(_LINT_c_cppcheck): $(CPPCHECK_SUPPRESS) $(MK) | $$(@D)/
-
-$(_LINT_c_EX_cppcheck):
+$(tgts):
$(info $(INFO_)CPPCHECK $@)
$(CPPCHECK) $(CPPCHECKFLAGS_) $<
$(TOUCH) $@
.PHONY: lint-c-cppcheck
-lint-c-cppcheck: $(_LINT_c_cppcheck);
+lint-c-cppcheck: $(tgts);
undefine ext
undefine xfail
+undefine tgts_EX
undefine tgts
include $(MAKEFILEDIR)/configure/build-depends/cpplint/cpplint.mk
-_LINT_c_EX_cpplint := $(patsubst %, %.lint-c.cpplint.touch, $(_EX_TU_src))
-_LINT_c_cpplint := $(_LINT_c_EX_cpplint)
+tgts_EX := $(patsubst %, %.lint-c.cpplint.touch, $(_EX_TU_src))
+tgts := $(tgts_EX)
-$(_LINT_c_EX_cpplint): %.lint-c.cpplint.touch: %
-$(_LINT_c_cpplint): $(CPPLINT_CONF) $(MK) | $$(@D)/
+$(tgts_EX): %.lint-c.cpplint.touch: %
+$(tgts): $(CPPLINT_CONF) $(MK) | $$(@D)/
-$(_LINT_c_cpplint):
+$(tgts):
$(info $(INFO_)CPPLINT $@)
$(CPPLINT) $(CPPLINTFLAGS_) $< >/dev/null
$(TOUCH) $@
.PHONY: lint-c-cpplint
-lint-c-cpplint: $(_LINT_c_cpplint);
+lint-c-cpplint: $(tgts);
+
+
+undefine tgts_EX
+undefine tgts
endif # include guard
ext := .lint-c.iwyu.touch
xfail := $(MAKEFILEDIR)/lint/c/iwyu.xfail
-tgts := $(patsubst %, %$(ext), $(_EX_TU_src))
+tgts_EX := $(patsubst %, %$(ext), $(_EX_TU_src))
ifeq ($(SKIP_XFAIL),yes)
-tgts := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tgts))
+tgts_EX := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tgts_EX))
endif
+tgts := $(tgts_EX)
-_LINT_c_EX_iwyu := $(tgts)
-_LINT_c_iwyu := $(_LINT_c_EX_iwyu)
+$(tgts_EX): %.lint-c.iwyu.touch: %
+$(tgts): $(MK) | $$(@D)/
-$(_LINT_c_EX_iwyu): %.lint-c.iwyu.touch: %
-$(_LINT_c_iwyu): $(MK) | $$(@D)/
-
-$(_LINT_c_iwyu):
+$(tgts):
$(info $(INFO_)IWYU $@)
! ($(IWYU) $(IWYUFLAGS_) $(CLANGFLAGS_) $(CPPFLAGS_) $< 2>&1 \
| $(SED) -n '/should add these lines:/,$$p' \
.PHONY: lint-c-iwyu
-lint-c-iwyu: $(_LINT_c_iwyu);
+lint-c-iwyu: $(tgts);
undefine ext
undefine xfail
+undefine tgts_EX
undefine tgts
include $(MAKEFILEDIR)/configure/build-depends/grep/grep.mk
-_LINT_man_tbl := $(patsubst %, %.lint-man.tbl.touch, $(_NONSO_MAN))
+tgts := $(patsubst %, %.lint-man.tbl.touch, $(_NONSO_MAN))
-$(_LINT_man_tbl): %.lint-man.tbl.touch: % $(MK) | $$(@D)/
+$(tgts): %.lint-man.tbl.touch: % $(MK) | $$(@D)/
$(info $(INFO_)GREP $@)
$(HEAD) -n1 <$< \
| if $(GREP) '\\" t$$' >/dev/null; then \
.PHONY: lint-man-tbl
-lint-man-tbl: $(_LINT_man_tbl);
+lint-man-tbl: $(tgts);
+
+
+undefine tgts
endif # include guard
include $(MAKEFILEDIR)/src/sh.mk
-_LINT_sh_shellcheck := $(patsubst $(SRCBINDIR)/%, $(builddir)/%.lint-sh.shellcheck.touch, $(BIN_sh))
+tgts := $(patsubst $(SRCBINDIR)/%, $(builddir)/%.lint-sh.shellcheck.touch, $(BIN_sh))
-$(_LINT_sh_shellcheck): $(builddir)/%.lint-sh.shellcheck.touch: $(SRCBINDIR)/% $(SHELLCHECK_CONF) $(MK) | $$(@D)/
+$(tgts): $(builddir)/%.lint-sh.shellcheck.touch: $(SRCBINDIR)/% $(SHELLCHECK_CONF) $(MK) | $$(@D)/
$(info $(INFO_)SHELLCHECK $@)
$(SHELLCHECK) $(SHELLCHECKFLAGS_) $<
$(TOUCH) $@
.PHONY: lint-sh-shellcheck
-lint-sh-shellcheck: $(_LINT_sh_shellcheck);
+lint-sh-shellcheck: $(tgts);
+
+
+undefine tgts
endif # include guard