From 512ced5ebd9547056bfea48cd59894471b2d1826 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sun, 1 Jan 2023 22:59:43 +0000 Subject: [PATCH] Make test script optional --- .make-and-exec-Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.make-and-exec-Makefile b/.make-and-exec-Makefile index 3a56375..4368047 100644 --- a/.make-and-exec-Makefile +++ b/.make-and-exec-Makefile @@ -1,4 +1,4 @@ -.make-and-exec-binaries/%: %.c .%-test +.make-and-exec-binaries/%: %.c mkdir -p .make-and-exec-binaries $(CC) -O3 -o $@ $< $(CFLAGS) - ./.$(notdir $(@))-test + [ -f ./.$(notdir $(@))-test ] && ./.$(notdir $(@))-test