aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mk/Uses/erlang.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/erlang.mk b/Mk/Uses/erlang.mk
index 52494008a8dd..22c772438f63 100644
--- a/Mk/Uses/erlang.mk
+++ b/Mk/Uses/erlang.mk
@@ -129,7 +129,7 @@ do-install-erlang:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${ERL_DOCS}
if [ -d "${WRKSRC}/${file}" ]; then \
- cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DOCSDIR}; \
+ cd ${WRKSRC} && ${COPYTREE_SHARE} ${file} ${STAGEDIR}${DOCSDIR}; \
else \
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}; \
fi