当前位置:网站首页>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 ?!
边栏推荐
- What are outer chain and inner chain?
- MySQL extracts strings from table fields
- 2022 new test questions for safety management personnel of metal and nonmetal mines (small open pit quarries) and certificate examination for safety management personnel of metal and nonmetal mines (s
- Summary of interview and Employment Questions
- Utf8 error in Oracle migration of Jincang Kingbase database
- 2022 underground coal mine electrical test and underground coal mine electrical simulation test
- 产品思维 | 无人机快递的未来值得期待吗?
- Federal learning: dividing non IID samples by Dirichlet distribution
- Huawei interview question: divide candy
- 2022 tool fitter (Advanced) and tool fitter (Advanced) certificate examination
猜你喜欢
随机推荐
Differences between comparable and comparator
QT中foreach的使用
Quick sort, cluster index, find the k-largest value in the data
Shell counts all strings before the last occurrence of a string
Comparable和Comparator的区别
Huawei interview question: divide candy
Intel hex, Motorola S-Record format detailed analysis
The next change direction of database - cloud native database
Personal PC installation software
通用分页(2)
Global and Chinese market of ULTRACENTRIFUGES 2022-2028: Research Report on technology, participants, trends, market size and share
Federal learning: dividing non IID samples by Dirichlet distribution
正则全匹配:密码由8位以上数字,大小写字母,特殊字符组成
Linked list: insert a node in the head
The Oracle main program is deleted, but the data is on another hard disk. Can I import the data again?
2022 new test questions for safety management personnel of metal and nonmetal mines (small open pit quarries) and certificate examination for safety management personnel of metal and nonmetal mines (s
简单自定义MVC优化
Global and Chinese market of medical mass notification system 2022-2028: Research Report on technology, participants, trends, market size and share
HOOK Native API
[oiclass] chess piece







