man/: Support compiling in build directory

Having a dedicated build directory breaks manual page creation.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
This commit is contained in:
Tobias Stoeckmann 2023-12-19 19:24:18 +01:00 committed by Serge Hallyn
parent ddbd3a36c1
commit 8b8793920e
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ man1/% man3/% man5/% man8/%: %.xml-config Makefile config.xml
--stringparam vendordir "$(VENDORDIR)" \
--param "man.output.in.separate.dir" "1" \
--path "$(srcdir)/login.defs.d" \
-nonet $(top_builddir)/man/shadow-man.xsl $<
-nonet $(top_srcdir)/man/shadow-man.xsl $<
clean-local:
rm -rf man1 man3 man5 man8

View File

@ -17,7 +17,7 @@ login.defs.d:
else \
sed -e 's/^\(<!DOCTYPE .*docbookx.dtd"\)>/\1 [<!ENTITY % config SYSTEM "config.xml">%config;]>/' $< > $@; \
fi
itstool -i ../its.rules -d -l $(LANG) -m messages.mo -o . $@
itstool -i $(srcdir)/../its.rules -d -l $(LANG) -m messages.mo -o . $@
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
include ../generate_mans.mak