Skip to Content
C语言核心技术(原书第2版)
book

C语言核心技术(原书第2版)

by Peter Prinz, Tony Crawford
August 2017
Intermediate to advanced
798 pages
17h 44m
Chinese
China Machine Press
Content preview from C语言核心技术(原书第2版)
716
|
第
20
章
$(CP) $< $@/
$(CHMOD) 600 $@/$<
bin:
只有当过程和原理非常清晰时,才建议使用
.PHONY
目
标,但还是可以在自动生成依赖规
则的过程中,看到其他技巧的应用。
20.7 其他目标属性
可以将其他属性应用到一个
makefile
中的特定目标上,方法是通过将这些目标作为其他
内置目标(例如
.PHONY
)的依赖条件。最重要的内置目标列举如下(其他特殊的内置目
标列举在本章最后,它们通常可以应用于
makefile
,以改变
make
在运行时的行为):
.IGNORE
对于作为
.IGNORE
依赖条件的任一目标而言,
make
会忽略执行命令以构建该目标过
程中所遇到的所有错误。
.
IGNORE
本身并没有命令脚本。
也可以把
.IGNORE
放在
makefile
中,不加任何依赖条件,但是这样做并不是一个推荐
方式。如果采用该方法,
make
会忽略执行任何命令脚本时所遇到的所有错误。
.INTERMEDIATE
通常情况下,当
make
需要建立一个没有依赖条件的目标时,它会搜索适当的规则,
以首先建立依赖条件。如果
makefile
中任何位置均找不到前述缺失的依赖条件,并
且
make
必须根据隐式规则来建立它们,那么它们就被称为中间文件(
intermediate
file
)。
make
会在建立所需目标后,将中间文件删除(请参见
20.3.5
节)。如果希
望特定的文件按照该方式处理,即便
makefile
中提及了这些文件,那么将它们声明
为
.
INTERMEDIATE
的依赖条件。
.LOW_RESOLUTION_TIME ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

算法精讲视频课程:24篇系列讲座

算法精讲视频课程:24篇系列讲座

罗伯特·塞奇威克, 凯文·韦恩(Kevin Wayne)

Publisher Resources

ISBN: 9787111562207