当前位置:网站首页>1152_ Makefile learning_ Pattern matching rules
1152_ Makefile learning_ Pattern matching rules
2022-06-30 03:17:00 【grey_ csdn】
All learning summary : https://github.com/GreyZhang/g_makefile
I looked at a static pattern matching rule , This time look at the pattern matching rules .

here , Take a paragraph from a tutorial written by someone else . The interpretation of these two rules is actually very simple , The first is to be able to .o And .c Automatic derivation of dependencies between , Then execute the compiled command . And when compiling , Two built-in variables are used ,$< Used to refer to a file that is dependent on [email protected] Used to refer to the target file . The second one was used in the previous example , Used to create missing empty files .
Next , See the explanation of some documents .

First, we give an introduction to the pattern rules , Then a typical grammar format is given . Actually , If you have a certain coding foundation, you may take a look at the general working mechanism of the marked format . The whole expression is a relatively direct content replacement .

About stem What is it? , Here is another explanation . And rely on files , It must already exist or be created next . Some dependent files may not be accompanied by %, Under such a rule, all target The general processing rules are used , Such rules are sometimes useful , But I really didn't think about the use of my current demands . One target Can be hit by multiple rules , In this case make Will choose the best rule . The choice of the best rule , Later, I'll go and sort it out . In turn, , A rule may hit more than one target, In this case make The explicit rule execution command will be responsible for the creation of all targets and will only be created once .
The above part is about Makefile Simple sorting of matching rules in , So many items make me doubt : Now the script automation function is also very powerful ,Makefile Functions of python Is it also possible to write such scripts ? Is there a big deviation in efficiency ?!
边栏推荐
- Linked list: insert a node in the head
- *Write a program to initialize a string object with a vector < char> container*/
- Jvxetable增加自定义按钮
- How do I enable assembly binding logging- How can I enable Assembly binding logging?
- JvxeTable子表记录加载完毕事件
- 如果辨别我现在交易的外盘股指期货交易平台是否正规安全?
- Knowledge points of 2022 system integration project management engineer examination: software quality assurance and quality evaluation
- Hands on in-depth learning notes (XV) 4.1 Multilayer perceptron
- QT中foreach的使用
- 备忘一下es6的export/import和类继承的用法
猜你喜欢

【十分钟】manim安装 2022
![[wechat applet] how did the conditional rendering list render work?](/img/db/4e79279272b75759cdc8d6f31950f1.png)
[wechat applet] how did the conditional rendering list render work?

An article to get you started VIM

Summary of PHP test sites encountered in CTF questions (I)

Cross domain, CORS, jsonp

F1c100s self made development board debugging process

General paging (2)

O & M (20) make and start USB flash disk and install win10

Interrupt operation: abortcontroller learning notes

什么是外链和内链?
随机推荐
[live broadcast notes 0629] Concurrent Programming II: lock
Global and Chinese market of ULTRACENTRIFUGES 2022-2028: Research Report on technology, participants, trends, market size and share
zabbix 触发器详解
个人PC安装软件
Auto.js学习笔记16:按项目保存到手机上,不用每次都保存单个js文件,方便调试和打包
如何实现远程协同办公,收好这份攻略!
O & M (20) make and start USB flash disk and install win10
2022 underground coal mine electrical test and underground coal mine electrical simulation test
华为面试题: 高矮个子排队
X Book 6.89 shield unidbg calling method
The next change direction of database - cloud native database
JvxeTable子表记录加载完毕事件
2. successfully solved bug:exception when publishing [Failed to connect and initialize SSH connection...
Regular full match: the password consists of more than 8 digits, upper and lower case letters, and special characters
Quick sort, cluster index, find the k-largest value in the data
List of development tools
Mysql 带上库名称跨库操作可能出现的问题
2. 成功解决 BUG:Exception when publishing, ...[Failed to connect and initialize SSH connection...
The MariaDB database was found 12 hours late
如果辨别我现在交易的外盘股指期货交易平台是否正规安全?