From 55752930695f21db5c5f115da4a715360717c39c Mon Sep 17 00:00:00 2001 From: Nathan R Date: Fri, 23 Jul 2021 19:31:58 +0200 Subject: [PATCH] Updated Makefile to print a Tree --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b742c44..4f178cb 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ MAIN = ccmeta all : $(MAIN) +tree : all .FORCE + ./$(MAIN) < $(MAIN)-tree.txt > $(MAIN)-tree.out + test : all .FORCE ./$(MAIN) < $(MAIN)-test.txt > $(MAIN)-test.out diff $(MAIN)-test.ref $(MAIN)-test.out @@ -24,6 +27,9 @@ tidy : .FORCE clean : .FORCE rm -f $(MAIN) $(MAIN).c -spotless : clean tidy +Rtree : .FORCE + rm -f *~ $(MAIN)-tree.out + +spotless : clean tidy Rtree .FORCE :