From 83bb429cdc53dd7d9a0957758e5995d476149d41 Mon Sep 17 00:00:00 2001 From: paoletti <paoletti@umich.edu> Date: Fri, 15 Sep 2017 14:02:22 -0400 Subject: [PATCH] Added automatic removal of perf data files. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 41a802e..6652ebb 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,9 @@ PROJECTFILE = $(or $(wildcard project*.cpp), nomain.cpp) PARTIAL_SUBMITFILE = partialsubmit.tar.gz FULL_SUBMITFILE = fullsubmit.tar.gz +# name of the perf data file, only used by the clean target +PERF_FILE = perf.data* + #Default Flags (would prefer -std=c++17 but Mac/Xcode/Clang doesn't support) CXXFLAGS = -std=c++1z -Wconversion -Wall -Werror -Wextra -pedantic @@ -110,7 +113,7 @@ alltests: clean $(TESTS) # make clean - remove .o files, executables, tarball clean: - rm -f $(OBJECTS) $(EXECUTABLE) $(DEBUG) $(TESTS) $(PARTIAL_SUBMITFILE) $(FULL_SUBMITFILE) + rm -f $(OBJECTS) $(EXECUTABLE) $(DEBUG) $(TESTS) $(PARTIAL_SUBMITFILE) $(FULL_SUBMITFILE) $(PERF_FILE) rm -Rf *.dSYM # make partialsubmit.tar.gz - cleans, runs dos2unix, creates tarball omitting test cases -- GitLab