Skip to contentSkip to conversation

Makefile: .PHONY is not a variable, but PHONY is

PATCH In review [email protected] 2 participants 2 messages Sep 2, 2015 – Dec 7, 2017 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: .PHONY is not a variable, but PHONY is

From: Ulf Magnusson <[email protected]>

.PHONY is a target, not a variable.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 24c9e3d..4835d24 100644
@@ -1609,6 +1609,6 @@ endif	# skip-makefile
 PHONY += FORCE
 FORCE:
 
-# Declare the contents of the .PHONY variable as phony.  We keep that
+# Declare the contents of the PHONY variable as phony.  We keep that
 # information in a variable so we can use it in if_changed and friends.
 .PHONY: $(PHONY)
Signature · 1 line
2.1.4
#1 lore raw

Hi Ulf,

2015-09-02 22:11 GMT+09:00 <[email protected]>:

Quoted 14 lines

From: Ulf Magnusson <[email protected]>

.PHONY is a target, not a variable.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +0 -0
index 24c9e3d..4835d24 100644

Makefile endif # skip-makefile

Quoted 8 lines
Makefile +1 -2
@@ -1609,6 +1609,6 @@ endif     # skip-makefile
 PHONY += FORCE
 FORCE:
 
-# Declare the contents of the .PHONY variable as phony.  We keep that
+# Declare the contents of the PHONY variable as phony.  We keep that
 # information in a variable so we can use it in if_changed and friends.
 .PHONY: $(PHONY)
--

I found this patch by chance.

Can you fix other files in scripts/ as well?

I see the same pattern in

Makefile.build
Makefile.clean
Makefile.modbuiltin
Makefile.modinst
Makefile.modpost
Makefile.modsign

Then, I will apply it quickly.

Signature · 2 lines
Best Regards
Masahiro Yamada