From c8dd393cf175f9c56de9bf656dab3255095d8bbe Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 18 May 2015 21:59:18 -0700 Subject: 1403 --- makefile | 13 ++++++------- 1 file 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 -- cgit 1.4.1-2-gfad0