From 6786385c82f48ef7c48ad488ab674ff3d750cb26 Mon Sep 17 00:00:00 2001 From: Jeff Donahue Date: Fri, 1 Aug 2014 19:42:41 -0700 Subject: [PATCH] Add "lintclean" target to remove current lint outputs -- forces lint to be run again next time "make lint" is run. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 62e5158..84f8db2 100644 --- a/Makefile +++ b/Makefile @@ -295,7 +295,7 @@ SUPERCLEAN_EXTS := .so .a .o .bin .testbin .pb.cc .pb.h _pb2.py .cuo ############################## # Define build targets ############################## -.PHONY: all test clean linecount lint tools examples $(DIST_ALIASES) \ +.PHONY: all test clean linecount lint lintclean tools examples $(DIST_ALIASES) \ py mat py$(PROJECT) mat$(PROJECT) proto runtest \ superclean supercleanlist supercleanfiles warn everything @@ -308,6 +308,9 @@ linecount: lint: $(EMPTY_LINT_REPORT) +lintclean: + @ $(RM) -r $(LINT_OUTPUT_DIR) $(EMPTY_LINT_REPORT) $(NONEMPTY_LINT_REPORT) + $(EMPTY_LINT_REPORT): $(LINT_OUTPUTS) | $(BUILD_DIR) @ cat $(LINT_OUTPUTS) > $@ @ if [ -s "$@" ]; then \ -- 2.7.4