diff options
author | Loïc Hoguin <[email protected]> | 2018-05-14 17:01:16 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-05-14 17:01:16 +0200 |
commit | ce0160ead3306313d85debc951e8f96e8e553d53 (patch) | |
tree | 1afcd7654c89b9e2159095caa45ff5146d8fc2dd /test/Makefile | |
parent | 551f92737f2f20b43f45c5324eb9bdf55c6a2621 (diff) | |
download | erlang.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/Makefile | 6 |
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 |