diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-16 22:19:17 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-16 22:19:17 -0700 |
commit | 2a2856bbc309b8a010b44cc550e56f2eb71fa9d3 (patch) | |
tree | eae179e60038e7a9fd4e818b74cbcdbf0981782c /cpp | |
parent | 1918e650b333b2dfbfc688f2f276c6fee6eb893a (diff) | |
download | mu-2a2856bbc309b8a010b44cc550e56f2eb71fa9d3.tar.gz |
937
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/makefile b/cpp/makefile index 4fbe6759..d49d8887 100644 --- a/cpp/makefile +++ b/cpp/makefile @@ -1,6 +1,5 @@ mu: makefile tangle/tangle mu.cc g++ -g -Wall -Wextra -fno-strict-aliasing mu.cc -o mu - ./mu test # To see what the program looks like after all layers have been applied, read # mu.cc @@ -12,9 +11,12 @@ tangle/tangle: cd tangle && make && tangle test # auto-generated files; by convention they end in '_list'. -.PHONY: autogenerated_lists clena +.PHONY: autogenerated_lists test clena autogenerated_lists: mu.cc function_list test_list +test: mu + ./mu test + function_list: mu.cc @grep -h "^[^ #].*) {" mu.cc |perl -pwe 's/ {.*/;/' > function_list @grep -h "^[[:space:]]*TEST(" mu.cc |perl -pwe 's/^\s*TEST\((.*)\)$$/void test_$$1();/' >> function_list |