[PATCH libevdev 05/10] doxygen: fix error msg: 'find: `html': No such file or directory'
Gaetan Nadon
memsize at videotron.ca
Mon Nov 25 05:23:18 PST 2013
On 13-11-24 09:22 AM, Stephen Kitt wrote:
> Given that doc_src ends up being used in a recursive copy, the following
> works and avoids the find entirely.
I thought so too, and it is true, but only if the docs are already
built. I tried it :-)
Try this:
make distclean;
./configure
[don't make]
make dist # by design the 'dist' target does not depend on the
'all' target
The html dir does not exist yet and make will stop with an error because
there is no rule to make it. With the "find" method, it resolves to
"blank" and this is why you need the dist-hook to catch the situation.
If you don't, a tarball will be created with no documentation and you
won't know.
Make 'dist' only role is to archive the source and there is no need, in
theory, for a build.
Having a full list of html files would be the safe and blessed way of
doing it, but it is a pain to maintain.
Thanks!
>
> Signed-off-by: Stephen Kitt <skitt at debian.org>
>
> diff --git a/doc/Makefile.am b/doc/Makefile.am
> index 53b2069..fa11065 100644
> --- a/doc/Makefile.am
> +++ b/doc/Makefile.am
> @@ -9,7 +9,7 @@ clean-local:
>
> .PHONY: doxygen
>
> -doc_src= $(shell find html -type f -printf "html/%P\n")
> +doc_src= html
> EXTRA_DIST = $(doc_src) libevdev.doxygen libevdev.css
> endif
>
More information about the Input-tools
mailing list