x86emul/test: drop bogus .PHONY
PATCH 1/1 x86emul/test: drop bogus .PHONY
x86_emulate is a real (directory) target.
tools/tests/x86_emulator/Makefile +0 -1
@@ -278,7 +278,6 @@ else run32 clean32: %32: % endif -.PHONY: x86_emulate x86_emulate: mkdir -p $@ ln -sf $(XEN_ROOT)/xen/arch/x86/$@/*.[ch] $@/
Quoted 3 lines · Jan Beulich
x86_emulateis a real (directory) target.Signed-off-by Jan Beulich <[email protected]>
Quoted 1 line · Jan Beulich
x86_emulateis a real (directory) target.
Indeed, x86_emulate is a directory, so having the target in .PHONY isn't bogus, but kind of expected in most cases.
Here, the recipe is written with .PHONY been used, as suggest the used option "-p" from mkdir and "-f" from ln.
Without .PHONY, the recipe will never be executed if the directory exist. And, if the content of the original x86_emulate directory change, the linked directory will never be updated.
So, this patch description needs a reason for removing x86_emulate from .PHONY. Is there some kind of bug?
tools/tests/x86_emulator/Makefile else · line 283
Quoted 10 lines
tools/tests/x86_emulator/Makefile +0
-1@@ -278,7 +278,6 @@ else run32 clean32: %32: % endif -.PHONY: x86_emulate x86_emulate: mkdir -p $@ ln -sf $(XEN_ROOT)/xen/arch/x86/$@/*.[ch] $@/
Cheers,
Signature · 1 line
Anthony PERARD
Quoted 9 lines · Anthony PERARD
Quoted 1 line · Jan Beulich
x86_emulateis a real (directory) target.Indeed,
x86_emulateis a directory, so having the target in .PHONY isn't bogus, but kind of expected in most cases.Here, the recipe is written with .PHONY been used, as suggest the used option "-p" from
mkdirand "-f" fromln.
Quoted 6 lines
Without .PHONY, the recipe will never be executed if the directory exist. And, if the content of the original
x86_emulatedirectory change, the linked directory will never be updated.So, this patch description needs a reason for removing
x86_emulatefrom .PHONY. Is there some kind of bug?
Yes, but it was my brain that was buggy. I deliberately added that line long ago when converting the symlink to a real dir, and then for whatever reason thought recently that it was bogus. Right you are, and I'll revert this change.
Jan
Quoted 13 lines
tools/tests/x86_emulator/Makefile else · line 283
Quoted 10 lines
tools/tests/x86_emulator/Makefile +0
-1@@ -278,7 +278,6 @@ else run32 clean32: %32: % endif -.PHONY: x86_emulate x86_emulate: mkdir -p $@ ln -sf $(XEN_ROOT)/xen/arch/x86/$@/*.[ch] $@/Cheers,