Can we create an empty target which doesn't compile anything? #6484
-
In GNU make, we can create an empty target which doesn't compile anything: .PHONY: demo
demo:
echo 'Hello, world!' However, in xmake, target("demo")
set_languages("")
before_build(
function (target)
print("Hello, world!")
end
) It will fail when it try
Can we do it like Makefile? |
Beta Was this translation helpful? Give feedback.
Answered by
star-hengxing
May 21, 2025
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Freed-Wu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
set_kind("phony")
https://xmake.io/#/manual/project_target?id=phony