Add --target
support to sync
and install
#3257
Merged
--target
support to sync
and install
#3257