From ce0160ead3306313d85debc951e8f96e8e553d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 14 May 2018 17:01:16 +0200 Subject: Don't list test cases manually anymore --- test/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/Makefile') 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 -- cgit v1.2.3