[PATCH libevdev 08/10] doxygen: fix 'distcheck' for tarballs srcdir!=builddir without doxygen

Peter Hutterer peter.hutterer at who-t.net
Sun Nov 24 16:41:52 PST 2013


Hi again :)

On Mon, Nov 25, 2013 at 07:46:11AM +1000, Peter Hutterer wrote:
> Hi Gaetan,
> 
> On Sun, Nov 24, 2013 at 08:02:32AM -0500, Gaetan Nadon wrote:
> > Using srcdir seems counterintuitive but when doxygen is missing,
> > the html dir is really source code.
> 
> I don't think there's really a need for this particular fix. make dist is a
> maintainer task and we should expect maintainers to install all packages.
> with the patch below there's even the slim chance of a tarball getting
> released with out-dated documentation (e.g. if I remove doxygen for some
> testing and then forget to re-install it. it may pick up the old sources)

(follow-up to that now that I synced the whole thread. for some reason this
email came in first and I didn't see the follow-ups until much later)

the above still stands, I don't think we need to succeed make dist or make
distcheck if doxygen is missing. Both are imo a maintainer operation and
should thus require the full set of dependencies.

patches 01-06 are merged. 07 and 08 I think shouldn't be merged for the
above reasons, and that would drop the need for 10 as well since dist
requires doxygen. that leaves 09 which I think is useful.

Now the question is for whether to add $(builddir) to the doc_src find
command as a separate patch?

also, thanks for those patches. that "find: no such file or directory" has
been going on my nerves for a while now :)

Cheers,
   Peter


> > Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
> > ---
> >  doc/Makefile.am |    9 +++++++--
> >  1 file changed, 7 insertions(+), 2 deletions(-)
> > 
> > diff --git a/doc/Makefile.am b/doc/Makefile.am
> > index 4389f16..7cdd7ea 100644
> > --- a/doc/Makefile.am
> > +++ b/doc/Makefile.am
> > @@ -12,12 +12,17 @@ html/index.html: libevdev.doxygen $(header_files)
> >  clean-local:
> >  	$(AM_V_at)rm -rf html
> >  
> > -endif
> > +doc_src= $(shell find $(builddir)/html -type f -printf "html/%P\n" 2>/dev/null)
> > +EXTRA_DIST = $(doc_src) libevdev.css
> > +
> > +else
> >  
> >  # You may run 'make dist' from a tarball when doxygen is not installed
> > -doc_src= $(shell find html -type f -printf "html/%P\n" 2>/dev/null)
> > +doc_src= $(shell find $(srcdir)/html -type f -printf "html/%P\n" 2>/dev/null)
> >  EXTRA_DIST = $(doc_src) libevdev.css
> >  
> > +endif
> > +
> >  # make sure doc was built before running dist
> >  dist-hook:
> >  	@test -f $(distdir)/html/index.html || (\
> > -- 
> > 1.7.9.5
> > 
> > _______________________________________________
> > Input-tools mailing list
> > Input-tools at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/input-tools
> _______________________________________________
> Input-tools mailing list
> Input-tools at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/input-tools


More information about the Input-tools mailing list