build samples and ignore generated files