Make the examples tree split by devices

This patch comes from email discussion. It fixes running make inside of single example.