From e2867428698bec01b06c41087af8dc709157667c Mon Sep 17 00:00:00 2001 From: Mysaa Date: Wed, 26 Oct 2022 11:56:48 +0200 Subject: [PATCH] Perfection du make clean --- MiniC/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MiniC/Makefile b/MiniC/Makefile index 64ba2d8..89300a0 100644 --- a/MiniC/Makefile +++ b/MiniC/Makefile @@ -87,7 +87,8 @@ import glob import os for f in glob.glob("**/tests/**/*.c", recursive=True): files = ["{}-{}.{}".format(f[:-2], test,ext) for test in ("naive", "smart", "gcc", "all-in-mem") for ext in ("s","riscv","pdf")] - files += ["{}.{}.{}.{}".format(f[:-2], funct, test,ext for funct in ("main") for test in ("enterssa","exitssa") for ext in ("dot.pdf","dot") + files += ["{}.{}".format(f[:-2],ext) for ext in ("s",)] + files += ["{}.{}.{}.{}".format(f[:-2], funct, test,ext) for funct in ("main",) for test in ("enterssa","exitssa") for ext in ("dot.pdf","dot")] for s in files: try: os.remove(s)