WHAT=table.concat(arg,' ') for d in path.dirs 'examples' do if not d:match 'big1$' then -- don't bother with the big one for tests... lake(d,WHAT) end end if WHAT:match'clean$' then -- let's be really thorough for pat in list {'.spec','.d','.o','.obj'} do utils.remove(lake.expand_args('*',pat,true)) end end