From: Andrew Cooper Date: Wed, 1 Aug 2012 11:46:50 +0000 (+0100) Subject: tools/ocaml: ignore and clean .spot and .spit files X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8105 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0bd69acf0481e0c7997b0e916345ad53a1be0e42;p=xen.git tools/ocaml: ignore and clean .spot and .spit files 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 Acked-by: Ian Jackson Committed-by: Ian Campbell --- diff --git a/.gitignore b/.gitignore index 0891d903c4..eb33e98d88 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,8 @@ *.bin *.bak *.tmp +*.spot +*.spit TAGS cscope.files cscope.in.out diff --git a/.hgignore b/.hgignore index 9baf57b997..845ec4825d 100644 --- a/.hgignore +++ b/.hgignore @@ -15,6 +15,8 @@ .*\.flc$ .*\.orig$ .*\.rej$ +.*\.spot$ +.*\.spit$ .*/a\.out$ .*/Modules\.symvers$ .*/cscope\..*$ diff --git a/tools/ocaml/Makefile.rules b/tools/ocaml/Makefile.rules index bbd22e881d..ff19067ccf 100644 --- a/tools/ocaml/Makefile.rules +++ b/tools/ocaml/Makefile.rules @@ -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)