diff --git a/Makefile.js b/Makefile.js index 881b2f8b2c8..c03ed22b25f 100644 --- a/Makefile.js +++ b/Makefile.js @@ -623,7 +623,7 @@ target.gensite = function(prereleaseVersion) { // 3. Copy docs folder to a temporary directory echo("> Copying the docs folder (Step 3)"); docFiles.forEach(filePath => { - cp("-rf", `docs/src${filePath}*`, TEMP_DIR); + cp("-rf", `docs/src${filePath}*`, `${TEMP_DIR}/${filePath}`); }); // special case (for now)