summaryrefslogtreecommitdiffstats
path: root/share/mk/build/pre/tbl.mk
blob: 24486f8ea79b93fbace83deefeb26c311974f04b (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_PRE_TBL_INCLUDED
MAKEFILE_BUILD_PRE_TBL_INCLUDED := 1


include $(MAKEFILEDIR)/build/pre/preconv.mk
include $(MAKEFILEDIR)/configure/build-depends/groff-base.mk


_MAN_eqn := $(patsubst %.tbl,%.eqn,$(_MAN_tbl))


$(_MAN_eqn): %.eqn: %.tbl $(MK) | $$(@D)/
	$(info	$(INFO_)TBL		$@)
	$(TBL) <$< >$@


.PHONY: build-pre-tbl
build-pre-tbl: $(_MAN_eqn);


endif  # include guard