bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib getloadavg: incorrect .Po included in root Makefile.in


From: Paul Smith
Subject: Re: gnulib getloadavg: incorrect .Po included in root Makefile.in
Date: Tue, 19 Jun 2018 20:32:47 -0400

On Mon, 2018-06-18 at 18:33 +0200, Bruno Haible wrote:
> Hi Paul,
> 
> > I'm on a GNU/Linux system with autoconf 2.69, automake 1.15.1, ...
> > ...
> >    Makefile:1021: lib/.deps/getloadavg.Po: No such file or directory
> 
> You might try automake 1.16.1 instead. Its handling of files under
> .deps/ has changed. It might solve your issue.

Hm.  OK, I did install automake 1.16.1 and it did solve my problem, in
that "make distcheck" does work properly.

I still think that there's something not right here though.

After I run bootstrap I have 3 .c files in my lib directory, including
getloadavg.c, plus a lib/Makefile.am and lib/Makefile.in.  All of those
.c files have rules in the lib/Makefile.in that will build them when
necessary, clean them up, include their dependency files, etc.

However, for lib/getloadavg.c and ONLY for that lib/*.c file, I ALSO
get duplicate rules in my root Makefile.in (there's no mention in my
root Makefile.am of course, because I'm relying on gnulib to handle
that file) for managing lib/getloadavg.c.  None of the other lib/*.c
files get this duplicated treatment.

For example, in my root Makefile.in I see all the following lines,
including the weird extra indentation in the clean rules... things seem
to work properly as far as I've tested, but it still seems wrong to me.
 Why are all these duplicated controls in my root Makefile.in for
getloadavg.c and ONLY for getloadavg.c?

Cheers!


  am__depfiles_remade = lib/$(DEPDIR)/getloadavg.Po \
          src/$(DEPDIR)/amiga.Po src/$(DEPDIR)/ar.Po \
    ...
  am__DIST_COMMON = $(srcdir)/Makefile.in \
    ...
          $(top_srcdir)/build-aux/missing $(top_srcdir)/lib/getloadavg.c \
    ...
  lib/getloadavg.$(OBJEXT): lib/$(am__dirstamp)
    ...
  @AMDEP_TRUE@@am__include@ @address@hidden/$(DEPDIR)/address@hidden@ # 
am--include-marker
    ...
  mostlyclean-generic:
          -rm -f lib/getloadavg.$(OBJEXT)
    ...
  distclean: distclean-recursive
          -rm -f $(am__CONFIG_DISTCLEAN_FILES)
                  -rm -f lib/$(DEPDIR)/getloadavg.Po
          -rm -f src/$(DEPDIR)/amiga.Po
    ...
  maintainer-clean: maintainer-clean-recursive
          -rm -f $(am__CONFIG_DISTCLEAN_FILES)
          -rm -rf $(top_srcdir)/autom4te.cache
                  -rm -f lib/$(DEPDIR)/getloadavg.Po
          -rm -f src/$(DEPDIR)/amiga.Po
    ...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]