The following wildcards will work in Emakefiles: {"src/*", [{i, "include"}, {outdir, "ebin"}, debug_info, strict_record_tests]}. {"src/*/*", [{i, "include"}, {outdir, "ebin"}, debug_info, strict_record_tests]}. I think that's what you're asking for! /s