由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - help need for a make question (simple one)
相关主题
autoconf problemshelp on cxterm
cxterm compilewhat is wrong with makefile?
help: how to know the pid of prog started by rshRe: SOS!!! (about FLTK)
问题找到了,但是不知道怎么解决, 请帮忙[转载] Cygwin问题请教英雄,救命啊!!!
[转载] waitpid 一问Help: failed to compile cxterm with cc
简单问题,可我不会。:( 急用啊![转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!
Questions about MakefileRe: [转载] makefile question. urgent!!!!!!!!!!!!!!!!!!!!!!!!
怎样写 makefileMakefile help!
相关话题的讨论汇总
话题: gcc话题: simple话题: question话题: clean话题: why
进入Unix版参与讨论
1 (共1页)
m****x
发帖数: 6
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
s*****d
发帖数: 258
2
could it be a "tab" problem? I mean you mistakenly entered spaces instead of
a "tab" before "rm" .
br />

【在 m****x 的大作中提到】
: /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

m****x
发帖数: 6
3
No. I have a tab there.

【在 s*****d 的大作中提到】
: could it be a "tab" problem? I mean you mistakenly entered spaces instead of
: a "tab" before "rm" .
: br />

m*******m
发帖数: 182
4
Remove the empty line after "clean" target.
~{!>~} ~{TZ~} matrix (nxm matrix) ~{5D4sWwVPLa5=~}: ~{!?~}
c*****t
发帖数: 1879
5
You should be more careful:

^^^^^^^^^^^^^^^^^^^
gcc -o prog prog.o aid.o

【在 m****x 的大作中提到】
: /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

1 (共1页)
进入Unix版参与讨论
相关主题
Makefile help![转载] waitpid 一问
write makefile简单问题,可我不会。:( 急用啊!
Re: Makefile help!( -g option)Questions about Makefile
[转载] emacs下编译程序,怎么指定路径?怎样写 makefile
autoconf problemshelp on cxterm
cxterm compilewhat is wrong with makefile?
help: how to know the pid of prog started by rshRe: SOS!!! (about FLTK)
问题找到了,但是不知道怎么解决, 请帮忙[转载] Cygwin问题请教英雄,救命啊!!!
相关话题的讨论汇总
话题: gcc话题: simple话题: question话题: clean话题: why