Skip to content
Snippets Groups Projects
Commit d64ab1d1 authored by Björn Brandenburg's avatar Björn Brandenburg
Browse files

add 'make vacuum' target to get rid of stale build files

parent 5de5b522
No related branches found
No related tags found
1 merge request!74Model cleanup
...@@ -29,3 +29,14 @@ ...@@ -29,3 +29,14 @@
# FIXME: not quite right, since the output name is different # FIXME: not quite right, since the output name is different
gallinahtml: GAL=-g gallinahtml: GAL=-g
gallinahtml: html gallinahtml: html
@@ -587,6 +593,10 @@
$(HIDE)rm -f $(CMOFILES:%.cmo=%.cmx)
.PHONY: archclean
+vacuum:: cleanall
+ $(SHOW)'VACUUMING *.vo *.glob .*.aux <empty directories>'
+ $(HIDE)find . -depth \( -iname '*.vo' -or -iname '*.glob' -or -iname '.*.aux' \) ! -path './.git/*' -delete
+ $(HIDE)find . -depth -type d -empty ! -path './.git/*' -delete
# Compilation rules ###########################################################
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment