当前位置:网站首页>1150_ Makefile learning_ Duplicate name target processing in makefile
1150_ Makefile learning_ Duplicate name target processing in makefile
2022-06-30 03:17:00 【grey_ csdn】
All learning summary : GitHub - GreyZhang/g_makefile: Learn makefile from all kinds of tutorials on the web. Happy hacking and let's find an common way so we may don't need to touch makefile code any more!
This is a small problem that I have added in the process of learning , The research method is to write the test directly Makefile For testing . Maybe , The corresponding contents are also clearly stated in the document , But when I don't know much about the system in the early stage, I can start with such small details 、 The accumulation of small knowledge points begins .
First design one that can work normally makefile:
t1 : p1
p1:
echo "first p1"
The effect of the operation is as follows :

This time, , What I want to test is if one Makefile There are two identical target Whether it will report an error ? Add without error , How to deal with ? So , Add an identical target. Revised as follows :
t1 : p1
p1:
echo "first p1"
p1:
echo "second p1"
Running effect :

look , It can be detected , In addition, in terms of implementation, the latter actually overrides the former . I saw some of the others Makefile, I feel that there will be similar treatment in it , First, do a small test like this , Maybe I will understand others later Makefile Bring some help when .
边栏推荐
猜你喜欢

F1c100s self made development board debugging process

prompt learning 一个空格引发的血案

【微信小程序】条件渲染 列表渲染 原来这样用?

Visual HTA form designer htamaker interface introduction and usage, Download | HTA VBS visual script writing

X Book 6.89 shield unidbg calling method

How to realize remote collaborative office, keep this strategy!

An article to get you started VIM

什么是外链和内链?

Reasons for MySQL master-slave database synchronization failure

发现mariadb数据库时间晚了12个小时
随机推荐
GTK interface programming (I): Environment Construction
Neo4j--- performance optimization
[practical skills] how to write agile development documents
华为面试题: 高矮个子排队
On the role of database tables
Uniapp address translation latitude and longitude
简单自定义MVC优化
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
如果辨别我现在交易的外盘股指期货交易平台是否正规安全?
General paging (2)
O & M (20) make and start USB flash disk and install win10
mysqldump原理
*Write a program to initialize a string object with a vector < char> container*/
JS conversion of letters and numbers
JS 字母和数字的相互转换
Regular full match: the password consists of more than 8 digits, upper and lower case letters, and special characters
Federal learning: dividing non IID samples by Dirichlet distribution
专升本高数(四)
如何实现远程协同办公,收好这份攻略!
Formal and actual parameters, value passing and address passing