diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-18 21:59:18 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-18 21:59:18 -0700 |
commit | c8dd393cf175f9c56de9bf656dab3255095d8bbe (patch) | |
tree | f3dc640f1ff9169c98866c8c93bc68bc90acd9e0 /makefile | |
parent | 9a660d2deb56d8b32d0da1de28e789dc8b9e32f0 (diff) | |
download | mu-c8dd393cf175f9c56de9bf656dab3255095d8bbe.tar.gz |
1403
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/makefile b/makefile index 9ef7c92c..e6f30d40 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,4 @@ -mu: makefile enumerate/enumerate tangle/tangle mu.cc termbox/libtermbox.a - @make autogenerated_lists >/dev/null +mu: makefile enumerate/enumerate tangle/tangle mu.cc termbox/libtermbox.a autogenerated_lists g++ -g -Wall -Wextra -fno-strict-aliasing mu.cc termbox/libtermbox.a -o mu # To see what the program looks like after all layers have been applied, read @@ -30,13 +29,13 @@ autogenerated_lists: mu.cc function_list test_list # autogenerated list of function declarations, so I can define them in any order function_list: mu.cc - # functions start out unindented, have all args on the same line, and end in ') {' - # ignore methods + @# functions start out unindented, have all args on the same line, and end in ') {' + @# ignore methods @grep -h "^[^[:space:]#].*) {" mu.cc |grep -v ":.*(" |perl -pwe 's/ {.*/;/' > function_list - # occasionally we need to modify a declaration in a later layer without messing with ugly unbalanced brackets - # assume such functions move the '{' to column 0 of the very next line + @# occasionally we need to modify a declaration in a later layer without messing with ugly unbalanced brackets + @# assume such functions move the '{' to column 0 of the very next line @grep -v "^#line" mu.cc |grep -B1 "^{" |grep -v "^{" |perl -pwe 's/$$/;/' >> function_list - # test functions + @# test functions @grep -h "^\s*TEST(" mu.cc |perl -pwe 's/^\s*TEST\((.*)\)$$/void test_$$1();/' >> function_list # autogenerated list of tests to run |