On 28 March 2017 at 20:06, Bruno Haible <[email protected]> wrote:

>
> So, I cannot reproduce. => Next time, please tell how to reproduce it.
>

​Current master head of https://github.com/rrthomas/enchant/ :

./autogen.sh
make
make clean
make distclean​

​Do let me know if you'd prefer a M!WE​.
​ (So far I've been working on trying to understand what is going on, see
below.)​



> 2) When I look at the generated Makefile, I see this snippet:
>
>         case "$@" in \
>           distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
>           *) list='$(SUBDIRS)' ;; \
>         esac; \
>         for subdir in $$list; do \
>
> Have you tried to define the DIST_SUBDIRS variable in Makefile.am [1],
> listing the
> subdirectories in reverse order?
>

​I tried this just now, and it merely shifts the problem to lib/, where I
get

make[1]: Entering directory '/home/rrt/.local/var/repo/enchant/lib'
Makefile:861: .deps/alloca.Plo: No such file or directory
Makefile:862: .deps/alloca.Plo: No such file or directory
Makefile:863: .deps/flock.Plo: No such file or directory
Makefile:864: .deps/malloc.Plo: No such file or directory
Makefile:865: .deps/msvc-inval.Plo: No such file or directory
Makefile:866: .deps/msvc-nothrow.Plo: No such file or directory
Makefile:867: .deps/relocatable.Plo: No such file or directory
Makefile:868: .deps/strdup.Plo: No such file or directory
Makefile:869: .deps/unistd.Plo: No such file or directory
make[1]: *** No rule to make target '.deps/unistd.Plo'. Stop.

This is because when running "make distclean" in src it does:

rm -rf ../lib/.deps ./.deps

Looking at automake's source, this is a result of removing DEPDIRS, which
is a pseudo-variable (defined specially in the automake script), which
expands to the list of directories from @deplist.

I cannot see how relocatable.c is treated specially (i.e. included
directly, as it needs to be, rather than just via libgnu.la).
m4/relocatable-lib.m4 doesn't seem to mention it, and
modules/relocatable-lib-lgpl doesn't seem to do anything special with the
relocatable.[ch] files, just mentions them as deps.

-- 
http://rrt.sc3d.org

Reply via email to