about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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