Only build samples if samples dir exists.