.PHONY: all clean
SOURCES := $(wildcard *.c)
+
TESTS := $(SOURCES:%.c=$(WORKDIR)/%.prg)
TESTS += $(SOURCES:%.c=$(WORKDIR)/%.o.prg)
TESTS += $(SOURCES:%.c=$(WORKDIR)/%.os.prg)
.PHONY: all clean
SOURCES := $(wildcard *.c)
+
TESTS := $(SOURCES:%.c=$(WORKDIR)/%.prg)
TESTS += $(SOURCES:%.c=$(WORKDIR)/%.o.prg)
TESTS += $(SOURCES:%.c=$(WORKDIR)/%.os.prg)
@$(RM) $(TESTS)
@$(RM) $(SOURCES:.c=.o)
@$(RM) $(SOURCES:%.c=$(WORKDIR)/%.out)
-
-
.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)
.PHONY: all clean
SOURCES := $(wildcard *.c)
+
TESTS := $(SOURCES:%.c=$(WORKDIR)/%.prg)
TESTS += $(SOURCES:%.c=$(WORKDIR)/%.o.prg)
TESTS += $(SOURCES:%.c=$(WORKDIR)/%.os.prg)