]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
man/: Support compiling in build directory
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 19 Dec 2023 18:24:18 +0000 (19:24 +0100)
committerSerge Hallyn <serge@hallyn.com>
Mon, 25 Dec 2023 16:08:24 +0000 (10:08 -0600)
Having a dedicated build directory breaks manual page creation.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
man/generate_mans.mak
man/generate_translations.mak

index 7d191dcb3129191fd86a94afe49728a80feea72f..4d0d268eb562dc750dba0ff282d0d9e440a07416 100644 (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
index b6a5d2f7890472acc0a307b70b42438847b8cd8a..4c3beb9a52214279bfbe24ddc0141f0cdea73b5b 100644 (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