diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-22 17:26:07 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-22 17:26:07 -0700 |
commit | 75cbfa2899fd47bc638095b425ee9142a12ce7ef (patch) | |
tree | b0dc56f888e5ac3c8c813410a99eddda16849d76 | |
parent | 5f1285238b09a5f01836138f5bb94654f78588a7 (diff) | |
download | mu-75cbfa2899fd47bc638095b425ee9142a12ce7ef.tar.gz |
1137
-rw-r--r-- | cpp/makefile | 10 |
1 files changed, 5 insertions, 5 deletions
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: |