Not shure that this is bug, but this behavior looks strange. Couldn`t
find anything
about it, so write here.

If you try to compile the shared library 'aaa.so' (or several libs) with
makefile 'aaa' like:
all: aaa.so
aaa.so: aaa.o
...
aaa.o: aaa.cpp
...
, and execute "make -f aaa" - after the compilation of the first rule
(aaa.cpp->aaa.o) make executes instruction "g++ aaa.o -o aaa", thus
removingmakefile 'aaa' with
errors.

If you rename the 'aaa' makefile to the 'Makefile' and execute "make" or "make
-f Makefile" (or rename it to any other name, differs from 'aaa') - all
compiles without any problems.

Full makefile attached.

Thanks anyway!

Attachment: aaa
Description: Binary data

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to