automake
[Top][All Lists]
Advanced

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

Re: make distclean


From: Juergen Sauermann
Subject: Re: make distclean
Date: Fri, 18 Mar 2016 16:47:59 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Mike,

I am not using the subdir-objects option. Should I ?

Also, if I

    ./configure
    make distcleran

then the compiler will not yet have been run.
But your explanation have given me an idea: if I remove the .deps directory
manually then 'make distclean' seems to work again.

Not very nice but at least  work-around.

Thanks,
Jürgen


On 03/18/2016 04:15 PM, Mike Miller wrote:
On Fri, Mar 18, 2016 at 12:36:13 +0100, Juergen Sauermann wrote:
Attached is the full log (shortest way to reproduce the problem.
I could have run 'make all' as well bu the result would be the same.

What puzzles me the most is the message:

make[2]: *** No rule to make target `.deps/libapl_la-libapl.Plo'. Stop.

because why would 'make distclean' even try to make that target?
Thanks for the full log, that gives enough information to explain this.

Makefiles include all of the files in .deps (as a make include). Make
treates included files as prerequisites of the makefile itself, so they
need to exist in order for any target to run, including any *clean
targets.

Turns out from your log file that a subdirectory of src is removing the
.deps files in its parent dir:

make[2]: Entering directory `/home/eedjsa/projects/juergen/apl-1.5/src/APs'
rm -rf .libs _libs
rm -f *.o
  rm -f AP100 AP210 APserver
rm -f *.lo
rm -f *.tab.c
test -z "" || rm -f
rm -f ../*.o
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
test . = "." || test -z "" || rm -f
rm -f ../.deps/.dirstamp
rm -f ../.dirstamp
rm -rf ../.deps ./.deps
rm -f Makefile
make[2]: Leaving directory `/home/eedjsa/projects/juergen/apl-1.5/src/APs'
This is probably why when 'distclean' returns to src, its .deps files
are already removed and the makefile errors out.

Are sources from the parent directory being built in the src/APs subdir
and you're using the 'subdir-objects' option?





reply via email to

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