rsync to copy all obect files2019年03月11日 14時51分40秒

rsync -atv --exclude='.git' --include='*/' --include='*.o' --exclude='*' src dist
'*.' matches sub directories, '*.o' matches all object files, and '*' to ignore the rest.