请详细并且通俗易懂的解释 makefile中 make clean 命令的东西,比如.PHONY:clean clean: rm -f *.o $(TARGET),为什么要加 .PHONY:clea...

"make clean"是一个在Makefile中使用的命令,通常用于删除项目生成的临时文件。

".PHONY: clean"的作用是告诉make这个"clean"不是一个文件名,而是一个伪目标。在这里,".PHONY"指的是非文件目标,也就是说不是一个文件,而是一个任务。

"clean:"命令后面的"rm -f *.o $(TARGET)"表示删除所有后缀名为".o"和$(TARGET)的文件,其中$(TARGET)是一个预定义的变量,代表目标文件的名称。

这么做的目的是为了清理掉项目编译过程中产生的临时文件,使项目重新保持一个干净的状态,方便后续的编译和打包。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Practical Software Architecture Solutions from the Legendary Robert C. Martin (“Uncle Bob”), , By applying universal rules of software architecture, you can dramatically improve developer productivity throughout the life of any software system. Now, building upon the success of his best-selling books Clean Code and The Clean Coder, legendary software craftsman Robert C. Martin (“Uncle Bob”) reveals those rules and helps you apply them., , Martin’s Clean Architecture doesn’t merely present options. Drawing on over a half-century of experience in software environments of every imaginable type, Martin tells you what choices to make and why they are critical to your success. As you’ve come to expect from Uncle Bob, this book is packed with direct, no-nonsense solutions for the real challenges you’ll face—the ones that will make or break your projects., Learn what software architects need to achieve—and core disciplines and practices for achieving it, Master essential software design principles for addressing function, component separation, and data management, See how programming paradigms impose discipline by restricting what developers can do, Understand what’s critically important and what’s merely a “detail”, Implement optimal, high-level structures for web, database, thick-client, console, and embedded applications, Define appropriate boundaries and layers, and organize components and services, See why designs and architectures go wrong, and how to prevent (or fix) these failures, Clean Architecture is essential reading for every current or aspiring software architect, systems analyst, system designer, and software manager—and for every programmer who must execute someone else’s designs., Register your product at informit.com/register for convenient access to downloads, updates, and/or corrections as they become available.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值