summaryrefslogtreecommitdiffstats
path: root/share/mk/build/ps/grops.mk
blob: cca9b444a62d9a0e5d48712cec56ab7abf1a618d (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_PS_GROPS_INCLUDED
MAKEFILE_BUILD_PS_GROPS_INCLUDED := 1


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


_PSMAN := $(patsubst %.ps.set,%.ps,$(_PSMAN_MAN_set) $(_PSMAN_MDOC_set))


$(_PSMAN): %.ps: %.ps.set $(MK) | $$(@D)/
	$(info	$(INFO_)GROPS		$@)
	$(GROPS) $(GROPSFLAGS) <$< >$@


.PHONY: build-ps-grops
build-ps-grops: $(_PSMAN);


endif  # include guard