From 75cbfa2899fd47bc638095b425ee9142a12ce7ef Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 22 Apr 2015 17:26:07 -0700 Subject: 1137 --- cpp/makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpp/makefile') diff --git a/cpp/makefile b/cpp/makefile index a2c90f5c..5c978101 100644 --- a/cpp/makefile +++ b/cpp/makefile @@ -25,13 +25,13 @@ test: mu ./mu test function_list: mu.cc - # skip methods - @grep -h "^[^ #].*) {" mu.cc |grep -v ":.*(" |perl -pwe 's/ {.*/;/' > function_list - @grep -h "^[[:space:]]*TEST(" mu.cc |perl -pwe 's/^\s*TEST\((.*)\)$$/void test_$$1();/' >> function_list + # declarations for lines starting with non-space and ending with ') {', except methods + @grep -h "^[^[:space:]#].*) {" mu.cc |grep -v ":.*(" |perl -pwe 's/ {.*/;/' > function_list + @grep -h "^\s*TEST(" mu.cc |perl -pwe 's/^\s*TEST\((.*)\)$$/void test_$$1();/' >> function_list test_list: mu.cc - @grep -h "^[[:space:]]*void test_" mu.cc |perl -pwe 's/^\s*void (.*)\(\) {.*/$$1,/' > test_list - @grep -h "^[[:space:]]*TEST(" mu.cc |perl -pwe 's/^\s*TEST\((.*)\)$$/test_$$1,/' >> test_list + @grep -h "^\s*void test_" mu.cc |perl -pwe 's/^\s*void (.*)\(\) {.*/$$1,/' > test_list + @grep -h "^\s*TEST(" mu.cc |perl -pwe 's/^\s*TEST\((.*)\)$$/test_$$1,/' >> test_list clena: clean clean: -- cgit 1.4.1-2-gfad0