In makefile's clean
i have written like rm -rf *.o
. But its not cleaning files. If i have given rm -rf libdummy.o
then its cleaning it properly. So if I use *
, its not working as expected.
clean: rm -rf *.o rm -rf dummy.a
and the output is
[exec] rm -rf *.o [exec] rm -rf dummy.a
If the folder is having a.o
, b.o
and dummy.a
. After make clean
, a.o
and b.o
presents in that folder itsefl, dummy.a
got deleted.
Note : I am executing this make in windows, building for vxworks using tornado 2.2 package. All the commands like make, cd, cp, rm from my makefile is executed from tornado package.
There is no file name called clean
. More over I have declared clean
as PHONY
tag also.
Below discussion is different from my problem.