From ab911ab204ef1dc8f80cf673ad6362f999fc24bb Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 24 Jun 2019 01:10:24 -0600 Subject: [PATCH] Update makefile, mainly to clean up testdir. --- ChangeLog | 6 ++++++ makefile | 16 +++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 316e87e..7010084 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-06-24 Arnold D. Robbins + + * makefile: Revise to take into account there is no more awktest.tar, + add targets 'check' and 'test', and also 'testclean' to clean up + after test run. Have 'clean' and 'cleaner' depend upon 'testclean'. + 2019-06-23 Arnold D. Robbins * testdir: Extracted from awktest.tar and added to Git. diff --git a/makefile b/makefile index 3c0b62e..0ab46cb 100644 --- a/makefile +++ b/makefile @@ -92,7 +92,7 @@ gitadd: git add README LICENSE FIXES \ awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \ lib.c run.c tran.c \ - makefile awk.1 awktest.tar + makefile awk.1 testdir gitpush: # only do this once: @@ -102,8 +102,18 @@ gitpush: names: @echo $(LISTING) -clean: +test check: + ./REGRESS + +clean: testclean rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c -cleaner: +cleaner: testclean rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda proctab.c ytab* + +# This is a bit of a band-aid until we can invest some more time +# in the test suite. +testclean: + cd testdir; rm -fr arnold-fixes beebe echo foo foo.td foo1 \ + foo1t foo2 foo2t footot glop glop1 glop2 lilly.diff \ + tempbig tempsmall time