about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tangle/makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tangle/makefile b/tangle/makefile
index caf13965..1086f287 100644
--- a/tangle/makefile
+++ b/tangle/makefile
@@ -1,6 +1,11 @@
 tangle: makefile type_list function_list file_list test_file_list test_list
 	c++ -g -O3 -Wall -Wextra -fno-strict-aliasing boot.cc -o tangle
 
+.PHONY: test
+
+test: tangle
+	./tangle test
+
 type_list: boot.cc [0-9]*.cc
 	@# assumes struct decl has space before '{'
 	@grep -h "^struct .* {" [0-9]*.cc |perl -pwe 's/(struct *[^ ]*).*/$$1;/' > type_list