[Ninja] Feature of build-tool : Implicit dependency to input '.ninja' file

Domain/Android 2016.03.04 21:41

'Ninja' has implicit dependency on input '.ninja' file.

Let's thing about following example.


< build.ninja >


rule hello

     command = echo ${msg}


build aaaa: hello

      msg = aaaa


build build.ninja: hello

      msg = build.ninja


-----


$ ninja yyyyyyy

[1/1] echo build.ninja

build.ninja

ninja: error: unknown target 'yyyyyyy'



---------------



Ninja try to build input '.ninja' file if rule for the '.ninja' is defined.

And then Ninja try to build given target.


신고
Trackback 1 : Comment 0
◀ PREV : [1] : ... [3] : [4] : [5] : [6] : [7] : [8] : [9] : [10] : [11] : ... [299] : NEXT ▶

티스토리 툴바