From df74dfee580bcef3d854c76c09e47de53931a717 Mon Sep 17 00:00:00 2001 From: Moritz Buhl Date: Mon, 1 Jun 2026 10:32:11 +0200 Subject: [PATCH] build-sys: Add a BSDMake target for converting pod files. Signed-off-by: Moritz Buhl --- man/man3/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man/man3/Makefile.am b/man/man3/Makefile.am index 77e815dd..707a8744 100644 --- a/man/man3/Makefile.am +++ b/man/man3/Makefile.am @@ -62,7 +62,8 @@ man3_MANS += $(man3_MANS_generated) # Ensure the build is reproducible, for details see: # https://reproducible-builds.org/docs/source-date-epoch/ -%.3 : %.pod +SUFFIXES: .pod .3 +.pod.3: @if test -n "$$SOURCE_DATE_EPOCH"; then \ BUILD_DATE=$$(date +%F --utc --date="@$$SOURCE_DATE_EPOCH"); \ else \ @@ -70,7 +71,7 @@ man3_MANS += $(man3_MANS_generated) fi; \ pod2man -r "libtpms" \ -c "" \ - -n $(basename $@) \ + -n $(<:.pod=) \ --date="$$BUILD_DATE" \ --section=3 $< > $@