-.\" $OpenBSD: bsd.port.mk.5,v 1.462 2017/06/10 10:13:10 espie Exp $
+.\" $OpenBSD: bsd.port.mk.5,v 1.463 2017/06/28 10:33:08 espie Exp $
.\"
.\" Copyright (c) 2000-2008 Marc Espie
.\"
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 10 2017 $
+.Dd $Mdocdate: June 28 2017 $
.Dt BSD.PORT.MK 5
.Os
.Sh NAME
.Ev SUPDISTFILES ,
for use with e.g.,
.Cm makesum .
+.It Cm generate-readmes
+Generate READMEs and rc scripts from
+.Pa ${PKGDIR}
+into
+.Pa ${WRKINST} .
+Run after
+.Cm fake
+and before
+.Cm package
+or
+.Cm update-plist .
+Always rerun, as it is cheap enough.
.It Cm index
Top-level target, see
.Xr ports 7 .
.Xr dpb 1 Ns 's
logs.
.Bl -diag
+.It "/bin/sh: cd .../pkg - No such file or directory"
+Emitted during
+.Cm generate-readmes.
+.Pa ${PKGDIR}
+must point to an existing directory, so that
+.Nm
+can be certain there are no
+.Pa MESSAGEs
+or
+other files pertinent to the package.
.It "Discovered old directory in ..."
This message comes from
.Xr make-plist 1 .
.Pa ${PKGDIR}/*.rc
get copied to
.Pa ${WRKINST}
-at the end of
-.Cm fake
+right after the end of
+.Cm fake ,
+during
+.Cm generate-readmes
(see the
.Sx FILES
section above for details).