about summary refs log tree commit diff stats
path: root/cpp
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-16 22:19:17 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-16 22:19:17 -0700
commit2a2856bbc309b8a010b44cc550e56f2eb71fa9d3 (patch)
treeeae179e60038e7a9fd4e818b74cbcdbf0981782c /cpp
parent1918e650b333b2dfbfc688f2f276c6fee6eb893a (diff)
downloadmu-2a2856bbc309b8a010b44cc550e56f2eb71fa9d3.tar.gz
937
Diffstat (limited to 'cpp')
-rw-r--r--cpp/makefile6
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