From 2a2856bbc309b8a010b44cc550e56f2eb71fa9d3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 16 Mar 2015 22:19:17 -0700 Subject: 937 --- cpp/makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cpp/makefile') 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 -- cgit 1.4.1-2-gfad0