summaryrefslogtreecommitdiffstats
path: root/share/mk/build/catman/grotty.mk
blob: db2ab3dcf1504e28e31c9eac9403fc88e8f9f3ec (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_BUILD_CATMAN_GROTTY_INCLUDED
MAKEFILE_BUILD_CATMAN_GROTTY_INCLUDED := 1


include $(MAKEFILEDIR)/build/catman/troff.mk
include $(MAKEFILEDIR)/configure/build-depends/groff-base/grotty.mk


_CATMAN := $(patsubst %.cat.set, %.cat, $(_CATMAN_MAN_set) $(_CATMAN_MDOC_set))


$(_CATMAN): %.cat: %.cat.set $(MK) | $$(@D)/
	$(info	$(INFO_)GROTTY		$@)
	$(GROTTY) $(GROTTYFLAGS) <$< >$@


.PHONY: build-catman-grotty
build-catman-grotty: $(_CATMAN);


endif  # include guard