From d9c8c1de457e2b8964c2828fbf2fdd0988e17de2 Mon Sep 17 00:00:00 2001 From: Greg King Date: Wed, 17 Dec 2014 16:30:09 -0500 Subject: [PATCH] Create the makefile variable REFS in the same way that TESTS is made. --- test/err/Makefile | 1 + test/misc/Makefile | 3 +-- test/ref/Makefile | 5 +++-- test/val/Makefile | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/err/Makefile b/test/err/Makefile index a6d590515..46ce4c9cc 100644 --- a/test/err/Makefile +++ b/test/err/Makefile @@ -20,6 +20,7 @@ WORKDIR := ./../../testwrk .PHONY: all clean SOURCES := $(wildcard *.c) + TESTS := $(SOURCES:%.c=$(WORKDIR)/%.prg) TESTS += $(SOURCES:%.c=$(WORKDIR)/%.o.prg) TESTS += $(SOURCES:%.c=$(WORKDIR)/%.os.prg) diff --git a/test/misc/Makefile b/test/misc/Makefile index 7af8c0cb1..64fcc8759 100644 --- a/test/misc/Makefile +++ b/test/misc/Makefile @@ -24,6 +24,7 @@ DIFF := $(WORKDIR)/bdiff .PHONY: all clean SOURCES := $(wildcard *.c) + TESTS := $(SOURCES:%.c=$(WORKDIR)/%.prg) TESTS += $(SOURCES:%.c=$(WORKDIR)/%.o.prg) TESTS += $(SOURCES:%.c=$(WORKDIR)/%.os.prg) @@ -61,5 +62,3 @@ clean: @$(RM) $(TESTS) @$(RM) $(SOURCES:.c=.o) @$(RM) $(SOURCES:%.c=$(WORKDIR)/%.out) - - diff --git a/test/ref/Makefile b/test/ref/Makefile index 39336aa52..df13a28cc 100644 --- a/test/ref/Makefile +++ b/test/ref/Makefile @@ -26,9 +26,10 @@ CFLAGS := -O2 -Wall -W -Wextra -fwrapv -fno-strict-overflow .PHONY: all clean -REFS := $(patsubst %.c,$(WORKDIR)/%.ref,$(wildcard *.c)) - SOURCES := $(wildcard *.c) + +REFS := $(SOURCES:%.c=$(WORKDIR)/%.ref) + TESTS := $(SOURCES:%.c=$(WORKDIR)/%.prg) TESTS += $(SOURCES:%.c=$(WORKDIR)/%.o.prg) TESTS += $(SOURCES:%.c=$(WORKDIR)/%.os.prg) diff --git a/test/val/Makefile b/test/val/Makefile index c9afbbd86..f4e0d28b2 100644 --- a/test/val/Makefile +++ b/test/val/Makefile @@ -22,6 +22,7 @@ WORKDIR := ./../../testwrk .PHONY: all clean SOURCES := $(wildcard *.c) + TESTS := $(SOURCES:%.c=$(WORKDIR)/%.prg) TESTS += $(SOURCES:%.c=$(WORKDIR)/%.o.prg) TESTS += $(SOURCES:%.c=$(WORKDIR)/%.os.prg) -- 2.39.5