|
From: | Reuben Thomas |
Subject: | bug#31157: Advice for help2man does not work for parallel builds |
Date: | Sun, 22 Apr 2018 07:52:02 +0100 |
Hello Reuben,
Reuben Thomas <address@hidden> writes:
> In the manual, we are given the following pattern for using help2man
> without breaking make distcheck:
>
> foo.1: foo.c $(top_srcdir)/configure.ac
> $(MAKE) $(AM_MAKEFLAGS) foo$(EXEEXT)
> help2man --output=foo.1 ./foo$(EXEEXT)
>
> The problem is that with make -j this can result in two attempts to
> make a library in parallel (suppose that we have:
>
> foo_LDADD = libfoo.la
> lib_LTLIBRARIES = libfoo.la
>
> ). This can fail, and in any case is wasteful.
Have you identified the reason why this can fail? because
This is not ideal since this result in making ‘help2man’ (and ‘perl’
transitively) a build dependency for tarball builders.
$(srcdir)/foo.1: foo.c foo$(EXEEXT)
address@hidden '$?' in \
*foo.c*)$(AM_V_P) && set -x || echo " HELP2MAN $@"; \
LANGUAGE= help2man --output="$(srcdir)/foo.1" ./foo$(EXEEXT);; \
*) : ;; \
esac;
[Prev in Thread] | Current Thread | [Next in Thread] |