From edd8382a52c6369bea6ab666eae7859c59944e23 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Sat, 13 Nov 2010 01:40:37 -0800 Subject: [PATCH] Change the default rule name from 'it' to 'all'. This is a departure from how djb seems to have it set up, but I just like it better. It's more like the reasonably-common Makefile standard. (Although what make *actually* does is just use the first target declared in the file.) --- Makefile | 2 +- redo.py | 2 +- runtests.do | 2 +- t/runtests.do | 2 +- test.do | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 020b24c..e705521 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -it: +all: %: FORCE ./redo $@ diff --git a/redo.py b/redo.py index 9b6d038..fa73af3 100755 --- a/redo.py +++ b/redo.py @@ -11,7 +11,7 @@ v,verbose print commands as they are run o = options.Options('redo', optspec) (opt, flags, extra) = o.parse(sys.argv[1:]) -targets = extra or ['it'] +targets = extra or ['all'] if opt.debug: os.environ['REDO_DEBUG'] = '1' diff --git a/runtests.do b/runtests.do index b318e64..579dcfd 100644 --- a/runtests.do +++ b/runtests.do @@ -1,5 +1,5 @@ . wvtest.sh -redo t/it +redo t/all WVSTART "t/runtests" WVPASS redo t/runtests diff --git a/t/runtests.do b/t/runtests.do index a6be69e..8aebc56 100644 --- a/t/runtests.do +++ b/t/runtests.do @@ -1,2 +1,2 @@ -redo-ifchange it +redo-ifchange all ./hello >&2 diff --git a/test.do b/test.do index fc4e03e..9c0ada5 100644 --- a/test.do +++ b/test.do @@ -1,4 +1,4 @@ -redo-ifchange t/it +redo-ifchange t/all wvtestrun redo runtests >&2