diff options
-rw-r--r-- | mail/py-spambayes/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/py-spambayes/Makefile b/mail/py-spambayes/Makefile index 315eea86b26f..9c9601f1cc83 100644 --- a/mail/py-spambayes/Makefile +++ b/mail/py-spambayes/Makefile @@ -36,7 +36,9 @@ post-install: .ifndef(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for file in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + @if [ -f ${WRKSRC}/${file} ]; then \ + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} ; \ + fi .endfor @${MKDIR} ${DOCSDIR}/contrib @${INSTALL_DATA} ${WRKSRC}/contrib/* ${DOCSDIR}/contrib |