Use the sort built-in function to ensure that scripts will be executed in order depending on make version.
See the following link for details on return value of the built-in wildcard function:
https://lists.gnu.org/archive/html/info-gnu/2010-07/msg00023.html
Signed-off-by: Lisa Nguyen lisa.nguyen@linaro.org --- Test.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Test.mk b/Test.mk index 66fe44b..2834fbb 100644 --- a/Test.mk +++ b/Test.mk @@ -21,8 +21,8 @@ # Daniel Lezcano daniel.lezcano@linaro.org (IBM Corporation) # - initial API and implementation
-SNT=$(wildcard *sanity.sh) -TST=$(wildcard *[^{sanity}].sh) +SNT:=$(wildcard *[sanity].sh) +TST:=$(sort $(wildcard *[!sanity].sh)) LOG=$(TST:.sh=.log) CFLAGS?=-g -Wall -pthread CC?=gcc