diff --git a/payload/reggae/backend/make.d b/payload/reggae/backend/make.d index 4979f8d5..2215cda2 100644 --- a/payload/reggae/backend/make.d +++ b/payload/reggae/backend/make.d @@ -75,7 +75,7 @@ struct Makefile { //includes rerunning reggae string output() @safe { - import std.array: join; + import std.array: join, replace; import std.range: chain; import std.algorithm: sort, uniq, map; @@ -91,7 +91,7 @@ struct Makefile { ret ~= fileName() ~ ": " ~ chain(options.reggaeFileDependencies, srcDirs.save).join(" ") ~ "\n"; ret ~= rerunLine; - ret ~= "\n" ~ srcDirs.save.map!(d => d ~ ":" ~ "\n" ~ rerunLine).join("\n"); + ret ~= "\n" ~ srcDirs.save.map!(d => d.replace(`\`, `/`) ~ ":" ~ "\n" ~ rerunLine).join("\n"); } return replaceEnvVars(ret);