From 61c5a8056754ea5724ca682a908b46cadea6ab3b Mon Sep 17 00:00:00 2001 From: Josh Berdine Date: Thu, 7 Apr 2016 15:09:53 -0700 Subject: [PATCH] Clean files generated by setup.sh Summary:public This may be unnecessary, but I found stale files while debugging and had to ask if they were the problem. Reviewed By: jvillard Differential Revision: D3130087 fb-gh-sync-id: d3222c3 fbshipit-source-id: d3222c3 --- Makefile.in | 26 +++++++++++++++++++++++++- infer/src/Makefile.in | 4 +++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 68c1cfabc..a0808fdb2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -249,13 +249,37 @@ endif $(LN_S) $(DESTDIR)$(libdir)/infer/infer/lib/python/inferTraceBugs inferTraceBugs) clean: - @rm -fv test.xml + $(REMOVE) test.xml ifeq (@BUILD_C_ANALYZERS@,yes) $(MAKE) -C $(FCP_DIR) clean $(MAKE) -C $(FCP_DIR)/clang-ocaml clean endif $(MAKE) -C $(INFER_DIR) clean +conf-clean: clean + $(REMOVE) infer/lib/python/inferlib/*.pyc + $(REMOVE) infer/lib/python/inferlib/*/*.pyc + $(REMOVE) .buckversion + $(REMOVE) Makefile + $(REMOVE) Makefile.config + $(REMOVE) acinclude.m4 + $(REMOVE) aclocal.m4 + $(REMOVE_DIR) autom4te.cache/ + $(REMOVE) config.log + $(REMOVE) config.status + $(REMOVE) configure + $(REMOVE) infer/Makefile + $(REMOVE) infer/models/Makefile + $(REMOVE) infer/models/c/Makefile + $(REMOVE_DIR) infer/models/c/out/ + $(REMOVE) infer/models/cpp/Makefile + $(REMOVE_DIR) infer/models/cpp/out/ + $(REMOVE) infer/models/java/Makefile + $(REMOVE_DIR) infer/models/java/infer-out/ + $(REMOVE) infer/models/objc/Makefile + $(REMOVE_DIR) infer/models/objc/out/ + $(REMOVE) infer/src/Makefile + .PHONY: all buck_test buck_test_xml clean clang .PHONY: clang_plugin clang_setup inferTraceBugs inferTraceBugs_test java .PHONY: ocaml_unit_test test test_xml test_build unit diff --git a/infer/src/Makefile.in b/infer/src/Makefile.in index fb08c00c9..f3f396667 100644 --- a/infer/src/Makefile.in +++ b/infer/src/Makefile.in @@ -300,12 +300,14 @@ test_clean: clean: $(REMOVE_DIR) $(BUILD_DIR) + $(REMOVE) $(ETC_DIR)/clang_ast.dict ifeq (@ENABLE_OCAML_ANNOT@,yes) $(REMOVE_DIR) $(ANNOT_DIR) endif $(REMOVE) backend/version.ml $(REMOVE) backend/version.ml.tmp.* + $(REMOVE) backend/jsonbug_{j,t}.ml{,i} $(REMOVE) $(INFERJAVA_BIN) $(INFERCLANG_BIN) $(INFERLLVM_BIN) $(INFERUNIT_BIN) - $(REMOVE) $(CHECKCOPYRIGHT_BIN) + $(REMOVE) $(INFERANALYZE_BIN) $(INFERPRINT_BIN) $(CHECKCOPYRIGHT_BIN) $(REMOVE) $(CLANG_ATDGEN_STUBS) $(REMOVE) $(INFER_CLANG_FCP_MIRRORED_FILES)