summaryrefslogtreecommitdiffstats
path: root/share/mk/check/catman/col.mk
blob: 59104fa4521c0c88c9b930f873e10de605ffedab (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
# Copyright 2021-2024, Alejandro Colomar <alx@kernel.org>
# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception


ifndef MAKEFILE_CHECK_CATMAN_COL_INCLUDED
MAKEFILE_CHECK_CATMAN_COL_INCLUDED := 1


include $(MAKEFILEDIR)/build/catman/grotty.mk
include $(MAKEFILEDIR)/configure/build-depends/bsdextrautils.mk


_CHECK_catman_grep := $(patsubst %.cat,%.cat.grep,$(_CATMAN))


$(_CHECK_catman_grep): %.grep: % $(MK) | $$(@D)/
	$(info	$(INFO_)COL		$@)
	$(COL) $(COLFLAGS) <$< >$@


.PHONY: check-catman-col
check-catman-col: $(_CHECK_catman_grep);


endif  # include guard