I have a command in my makefile for clean:
rm -rf */*.o */*.cmo */*.cmi */*.cmx */*.cma */*.cmxa */*.annot
Now I would like to write a cleanpartial that removes these files except those in the folder frontend/ and the folder frontend/gen/.
Does anyone know how to write this command properly?
frontendshould be left alone, but matching files in e.g.frontend/somedirshould be deleted? What about matching files infrontend/gen/somedir? (The answer I gave simply skips everything withinfrontendand all of its subdirectories, that being the simplest interpretation.) – Wildcard Apr 08 '16 at 00:30