当前位置:网站首页>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 ?!
边栏推荐
- O & M (21) make winpe startup USB flash disk
- X书6.97版本shield-unidbg调用方式
- HOOK Native API
- Global and Chinese market of bronze valves 2022-2028: Research Report on technology, participants, trends, market size and share
- Functions in C language
- 什么是外链和内链?
- Federal learning: dividing non IID samples by Dirichlet distribution
- 2022 tool fitter (Advanced) and tool fitter (Advanced) certificate examination
- Uniapp address translation latitude and longitude
- X书6.89版本shield-unidbg调用方式
猜你喜欢
随机推荐
&nbsp; Difference from spaces
专升本语文资源整理
GTK interface programming (II): key components
【微信小程序】条件渲染 列表渲染 原来这样用?
备忘一下es6的export/import和类继承的用法
Principle, advantages and disadvantages of three operating modes of dc/dc converter under light load
【实战技能】如何撰写敏捷开发文档
What are outer chain and inner chain?
Comparable和Comparator的区别
[practical skills] how to write agile development documents
mysqldump原理
设备驱动程序的原理
Jvxetable sub table record loading completion event
2. 成功解决 BUG:Exception when publishing, ...[Failed to connect and initialize SSH connection...
Global and Chinese market of medical mass notification system 2022-2028: Research Report on technology, participants, trends, market size and share
Code for generating test and training sets
Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing
Sorting method of administrative route code letter + number
The Oracle main program is deleted, but the data is on another hard disk. Can I import the data again?
Neo4j---性能优化









