Waf (build tool): PHONY goals such as Make?

how do you set a goal - maybe waf calls them "commands" - always run? Should it be like PHONY's goals in Make?

I use Waf to create, among other things, a Visual Studio solution whose dependencies and recompilation I would prefer to control Visual Studio itself.

I am currently using this (simplified) definition:

def build(bld): bld( rule = "msbuild MySolution.sln /target:Build /property:CONFIGURATION=Release", source = "", target = "program.exe" ) 

However, "msbuild" is only called when "program.exe" is missing.

Thanks.

+7
source share
1 answer

The question asked is on the waf-users mailing list, and the solution is to add the "always" parameter:

 def build(bld): bld( rule = "msbuild MySolution.sln /target:Build /property:CONFIGURATION=Release", target = "program.exe" , always = True ) 
+7
source

All Articles