From fea35f5f7b4fada4a42329b9824f30fcdb853dad Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 11 May 2020 01:48:22 +0200 Subject: [PATCH] :wrench: Improve Makefile --- Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 8393a710..baf90821 100644 --- a/Makefile +++ b/Makefile @@ -81,12 +81,19 @@ ast/libgwion_ast.a: ast: ast/libgwion_ast.a @(info build ast) -afl: - touch src/parse/{scan*.c,check.c} src/emit/emit.c src/main.c - PRG=gwion-fuzz CC=afl-clang-fast make - touch src/parse/{scan*.c,check.c} src/emit/emit.c src/main.c +afl: gwion-fuzz -clean: +gwion-fuzz: + @touch src/parse/{scan*.c,check.c} src/emit/emit.c src/main.c + @+PRG=gwion-fuzz CC=afl-clang-fast make + @touch src/parse/{scan*.c,check.c} src/emit/emit.c src/main.c afl + +clean_core: + @rm -f core.* *vgcore.* + +.PHONY: .afl + +clean: clean_core $(info cleaning ...) @rm -f src/*.o src/*/*.o gwion libgwion.a src/*.gcno src/*.gcda -- 2.43.0