From 85b2f7a8b30e7ce5ab5ebd1a682f258cd4f99cff Mon Sep 17 00:00:00 2001 From: Nathan R Date: Mon, 2 Aug 2021 16:24:03 +0200 Subject: [PATCH] updated makefile to run all the tests --- Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 4f178cb..3640729 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,7 @@ 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 + ./dotest $(MAIN) : $(MAIN).c object.c buffer.h $(CC) $(CFLAGS) -o $@ $@.c $(LDLIBS) @@ -21,15 +20,12 @@ $(MAIN) : $(MAIN).c object.c buffer.h leg $< > $@.new mv $@.new $@ -tidy : .FORCE - rm -f *~ $(MAIN)-test.out - clean : .FORCE rm -f $(MAIN) $(MAIN).c -Rtree : .FORCE +tidy : .FORCE rm -f *~ $(MAIN)-tree.out -spotless : clean tidy Rtree +spotless : clean tidy .FORCE :