blob: 9233372dfa63eb3cb82fe014c486af451529fdc0 (
plain) (
blame)
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
39
|
########################################################################
# Copyright (C) 2021, 2022 Alejandro Colomar <alx@kernel.org>
# SPDX-License-Identifier: GPL-2.0 OR LGPL-2.0
########################################################################
ifndef MAKEFILE_LINT_INCLUDED
MAKEFILE_LINT_INCLUDED := 1
include $(srcdir)/lib/build.mk
include $(srcdir)/lib/cmd.mk
include $(srcdir)/lib/src.mk
SYSCONFDIR := $(srcdir)/etc
_LINTDIR := $(builddir)/lint
LINTMAN := $(shell $(FIND) $(MANDIR)/man*/ -type f \
| $(GREP) '$(MANEXT)' \
| $(XARGS) $(GREP) -l '^\.TH ' \
| $(SORT))
_LINTDIRS := $(patsubst $(MANDIR)/%,$(_LINTDIR)/%/.,$(MANDIRS))
lint := lint-c lint-man
$(_LINTDIRS): %/.: | $$(dir %). $(_LINTDIR)/.
.PHONY: lint
lint: $(lint)
@:
endif # MAKEFILE_LINT_INCLUDED
|