Not shure that this is bug, but this behavior looks strange. Couldn`t findanything about it, so write here.
If you try tocompile theshared 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 ofthe first rule (aaa.cpp->aaa.o) make executes instruction "g++ aaa.o -o aaa",thusremoving makefile 'aaa' with errors. If yourename the 'aaa' makefile to the 'Makefile' andexecute"make"or"make -f Makefile" (or rename it to any other name, differs from 'aaa') -allcompileswithout any problems.