Makefile
Makefile - “>”是什么意思?(Makefile - what does “>” mean?)我正在努力学习这本书:“使用GNU Make管理项目”。 这个Makefile有一个例子:
count_words: count_words.o lexer.o -lfl gcc counter_words.o lexer.o -lfl -o count_wordscount_words.o: count_words.c gcc -c count_words.clexer.o: lexer.c gcc -c lexer.clexer.c: lexer.l flex -t lexer.l > lexer.c我完全不懂这条线
flex -t lexer.l > lexer.c在这种情况下,字符“>”是什么意思? 什么是.l?
i am trying to learn this Book: "Managing Projects with GNU Make". there is an example with this Makefile:
count_words: count_words.o lexer.o -lfl gcc counter_words.o lexer.o -lfl -o count_wordscount_words.o: count_words.c gcc -c count_words.clexer.o: lexer.c gcc -c lexer.clexer.c: lexer.l flex -t lexer.l > lexer.ci totally dont understand this line
flex -t lexer.l > lexer.cwhat does the character ">" mean in this case? And what is .l ?
最满意答案这是一个输出重定向 。 这意味着flex -t lexer.l命令的输出将写入文件lexer.c 。
That's an output redirection. It means the output of the flex -t lexer.l command will be written in the file lexer.c .