What is difference between install, install/local and install/strip?

I run the following command

cd build && ninja help

to get these targets

[1/1] All primary targets available:
install/strip: phony
install/local: phony
install: phony
...

What is difference between install, install/local and install/strip?

install is the typical “put things into the install tree” target. install/strip then strips debug information from the installed binaries. install/local seems to avoid installing any subdirectories (which is kind of useless with Ninja since you can only do that from the top-level directory).

I’ve filed an issue to remove install/local from Ninja (we can also add per-directory /install targets, but I don’t know how useful that would be).