From 69342e014057d6c7744dd3ae969f2167cd032ffe Mon Sep 17 00:00:00 2001 From: Nathan R Date: Mon, 2 Aug 2021 17:16:18 +0200 Subject: [PATCH] updated makefile to debug more easily --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3640729..162adfe 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,10 @@ tree : all .FORCE test : all .FORCE ./dotest +debug : all .FORCE + ./$(MAIN) < debug.c > debug.out + #diff debug.out debug.c + $(MAIN) : $(MAIN).c object.c buffer.h $(CC) $(CFLAGS) -o $@ $@.c $(LDLIBS) @@ -26,6 +30,9 @@ clean : .FORCE tidy : .FORCE rm -f *~ $(MAIN)-tree.out -spotless : clean tidy +cleansed : .FORCE + rm -f debug.out + +spotless : clean tidy cleansed .FORCE :