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.)
This commit is contained in:
parent
7505048093
commit
edd8382a52
5 changed files with 5 additions and 5 deletions
2
Makefile
2
Makefile
|
|
@ -1,4 +1,4 @@
|
||||||
it:
|
all:
|
||||||
|
|
||||||
%: FORCE
|
%: FORCE
|
||||||
./redo $@
|
./redo $@
|
||||||
|
|
|
||||||
2
redo.py
2
redo.py
|
|
@ -11,7 +11,7 @@ v,verbose print commands as they are run
|
||||||
o = options.Options('redo', optspec)
|
o = options.Options('redo', optspec)
|
||||||
(opt, flags, extra) = o.parse(sys.argv[1:])
|
(opt, flags, extra) = o.parse(sys.argv[1:])
|
||||||
|
|
||||||
targets = extra or ['it']
|
targets = extra or ['all']
|
||||||
|
|
||||||
if opt.debug:
|
if opt.debug:
|
||||||
os.environ['REDO_DEBUG'] = '1'
|
os.environ['REDO_DEBUG'] = '1'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
. wvtest.sh
|
. wvtest.sh
|
||||||
|
|
||||||
redo t/it
|
redo t/all
|
||||||
WVSTART "t/runtests"
|
WVSTART "t/runtests"
|
||||||
WVPASS redo t/runtests
|
WVPASS redo t/runtests
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
redo-ifchange it
|
redo-ifchange all
|
||||||
./hello >&2
|
./hello >&2
|
||||||
|
|
|
||||||
2
test.do
2
test.do
|
|
@ -1,4 +1,4 @@
|
||||||
redo-ifchange t/it
|
redo-ifchange t/all
|
||||||
wvtestrun redo runtests >&2
|
wvtestrun redo runtests >&2
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue