Don't confine yourself to using makefiles to compile code or create libraries. You can use them to automate any task where there is a sequence of commands that get you from some sort of input file to an output file. A typical "non compiler" use might be calling AWK or sed to process some files, or even generating manual pages. You can automate just about any file manipulation, just as long as make can work out, from the date and time information on the files, which ones have changed.
---- Beginning Linux Programming
博客指出不要局限于用Makefile编译代码或创建库,它可自动化从输入文件到输出文件的任务,如调用AWK或sed处理文件、生成手册页等,只要Make能根据文件日期时间信息判断文件变化,就能自动化文件操作。
643

被折叠的 条评论
为什么被折叠?



