aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
index 57890c5..453beb6 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -86,6 +86,12 @@ else
i = @echo == $@:
endif
+# Automatic listing of targets from test files.
+
+define list_targets
+$(sort $(shell grep ^$1- $(lastword $(MAKEFILE_LIST)) | cut -d: -f1))
+endef
+
# Main targets.
.PHONY: all clean build