tools/ocaml: ignore and clean .spot and .spit files
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Aug 2012 11:46:50 +0000 (12:46 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Aug 2012 11:46:50 +0000 (12:46 +0100)
Newer ocaml toolchains generate .spot and .spit files which are ocaml metadata
about their respective source files.

Add them to the clean rules as well as the .{hg,git}ignore files.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
.gitignore
.hgignore
tools/ocaml/Makefile.rules

index 0891d903c4c7ee8610477bb7910498797062f78f..eb33e98d8894675f9506b932e0e5dcb935391388 100644 (file)
@@ -11,6 +11,8 @@
 *.bin
 *.bak
 *.tmp
+*.spot
+*.spit
 TAGS
 cscope.files
 cscope.in.out
index 9baf57b9970736f8d5604b05152e45b6dd227508..845ec4825d4c280e640ebe67029e35f822bbe15c 100644 (file)
--- a/.hgignore
+++ b/.hgignore
@@ -15,6 +15,8 @@
 .*\.flc$
 .*\.orig$
 .*\.rej$
+.*\.spot$
+.*\.spit$
 .*/a\.out$
 .*/Modules\.symvers$
 .*/cscope\..*$
index bbd22e881dbab43ac6aa678e99756e7a3e8e867d..ff19067ccf929d98607f8e6475bb066c859327a2 100644 (file)
@@ -45,7 +45,7 @@ ALL_OCAML_OBJ_SOURCES=$(addsuffix .ml, $(ALL_OCAML_OBJS))
        $(call quiet-command, $(OCAMLDEP) $(ALL_OCAML_OBJ_SOURCES) *.mli $o,MLDEP,)
 
 clean: $(CLEAN_HOOKS)
-       $(Q)rm -f .*.d *.o *.so *.a *.cmo *.cmi *.cma *.cmx *.cmxa *.annot $(LIBS) $(PROGRAMS) $(GENERATED_FILES) .ocamldep.make
+       $(Q)rm -f .*.d *.o *.so *.a *.cmo *.cmi *.cma *.cmx *.cmxa *.annot *.spot *.spit $(LIBS) $(PROGRAMS) $(GENERATED_FILES) .ocamldep.make
 
 quiet-command = $(if $(V),$1,@printf " %-8s %s\n" "$2" "$3" && $1)