aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-05-14 17:01:16 +0200
committerLoïc Hoguin <[email protected]>2018-05-14 17:01:16 +0200
commitce0160ead3306313d85debc951e8f96e8e553d53 (patch)
tree1afcd7654c89b9e2159095caa45ff5146d8fc2dd /test/Makefile
parent551f92737f2f20b43f45c5324eb9bdf55c6a2621 (diff)
downloaderlang.mk-ce0160ead3306313d85debc951e8f96e8e553d53.tar.gz
erlang.mk-ce0160ead3306313d85debc951e8f96e8e553d53.tar.bz2
erlang.mk-ce0160ead3306313d85debc951e8f96e8e553d53.zip
Don't list test cases manually anymore
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