help need for a make question (simple one)# Unix - 噫吁兮,危乎高哉
m*x
1 楼
/bow first
This is a stupid simple question.
Why I cannot get "clean" functioning in make?
eg. This is my makefile:
prog: prog.o aid.o
gcc -o prog.o aid.o
prog.o: prog.c
gcc -c prog.c
aid.o: aid.c
gcc -c aid.c
clean:
rm *.o
everything is fine, except that "clean" task does not take place. Why?
/bow again
This is a stupid simple question.
Why I cannot get "clean" functioning in make?
eg. This is my makefile:
prog: prog.o aid.o
gcc -o prog.o aid.o
prog.o: prog.c
gcc -c prog.c
aid.o: aid.c
gcc -c aid.c
clean:
rm *.o
everything is fine, except that "clean" task does not take place. Why?
/bow again