diff options
author | Will Andrews <will@FreeBSD.org> | 2001-12-23 11:11:40 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-12-23 11:11:40 +0000 |
commit | f8a48d00c25385b925762302e6c78f7eadc54e87 (patch) | |
tree | 346aad6e9e861eaf09e7a37f26643f55645e2896 /Mk/bsd.port.subdir.mk | |
parent | Don't use cat(1) needlessly -- pipe the INDEX to awk(1). (diff) |
Don't descend into a subdir for 'readmes' target if subdir doesn't exist.
PR: 28510
Submitted by: Philippe Casidy <pcasidy@casidy.com>
Notes
Notes:
svn path=/head/; revision=52043
Diffstat (limited to 'Mk/bsd.port.subdir.mk')
-rw-r--r-- | Mk/bsd.port.subdir.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk index 5a6511c54f6f..61cdec288761 100644 --- a/Mk/bsd.port.subdir.mk +++ b/Mk/bsd.port.subdir.mk @@ -207,12 +207,14 @@ README.html: @echo "===> Creating README.html" @> $@.tmp .for entry in ${SUBDIR} +.if exists(${entry}) .if defined(PORTSTOP) @echo -n '<a href="'${entry}/README.html'">'"`echo ${entry} | ${HTMLIFY}`"'</a>: ' >> $@.tmp .else @echo -n '<a href="'${entry}/README.html'">'"`cd ${entry}; make package-name | ${HTMLIFY}`</a>: " >> $@.tmp .endif @cat `cd ${entry}; make -V COMMENT` | ${HTMLIFY} >> $@.tmp +.endif .endfor @sort -t '>' +1 -2 $@.tmp > $@.tmp2 .if exists(${DESCR}) |