最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Makefile

旗下网站admin11浏览0评论

Makefile

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.c

i totally dont understand this line

flex -t lexer.l > lexer.c

what 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 .

发布评论

评论列表(0)

  1. 暂无评论