mkfiles: check for test/mkfile when recursing

Some programs have test directories without a test
mkfile; this causes spurious errors. Discriminate
more carefully.
This commit is contained in:
Ori Bernstein 2024-12-10 23:11:44 +00:00
parent bf398d28c3
commit ace81cb1ae
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ clean:V:
man:V: $MANFILES
test:VQ: $PROGS
if(test -d ./test)
if(test -f ./test/mkfile)
cd test && mk $MKFLAGS test
if not
status=()

View file

@ -63,7 +63,7 @@ $MAN/%: %.man
man:V: $MAN/$TARG
test:QV: $O.out $TESTDEP
if(test -d ./test){
if(test -f ./test/mkfile){
pwd
@{cd ./test && mk $MKFLAGS test}
}