Re: [問題] makefile語法疑問
小弟試著更改makefile內容
===============================================================================
source:=folder1_%\
folder2_%\
$(source)
@echo $@
===============================================================================
指令make folder1_01
folder01_01
指令make folder2__01
folder02_01
但是如果增加一個沒有%的target pattern
===============================================================================
source:=sim\
folder1_%\
folder2_%\
$(source)
@echo $@
===============================================================================
指令make sim
mixed implicit and normal rules: deprecated syntax
sim
指令make folder1_01
mixed implicit and normal rules: deprecated syntax
No rule to make target 'folder1_01'. Stop.
似乎增加一個normal target pattern會影響到含% target pattern的match
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.143.209.106 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Programming/M.1669813030.A.1FD.html
推
12/01 19:50,
2年前
, 1F
12/01 19:50, 1F
→
12/01 19:50,
2年前
, 2F
12/01 19:50, 2F
→
12/02 08:01,
2年前
, 3F
12/02 08:01, 3F
推
12/06 19:41,
1年前
, 4F
12/06 19:41, 4F
→
12/06 19:41,
1年前
, 5F
12/06 19:41, 5F
→
12/06 19:42,
1年前
, 6F
12/06 19:42, 6F
→
12/06 19:43,
1年前
, 7F
12/06 19:43, 7F
→
12/06 19:43,
1年前
, 8F
12/06 19:43, 8F
→
12/06 19:43,
1年前
, 9F
12/06 19:43, 9F
→
12/06 19:44,
1年前
, 10F
12/06 19:44, 10F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 3 篇):
3
23
Programming 近期熱門文章
PTT數位生活區 即時熱門文章