compile: also generates a makefile named Makefile
authorJean Privat <jean@pryen.org>
Thu, 30 Oct 2014 01:32:37 +0000 (21:32 -0400)
committerJean Privat <jean@pryen.org>
Thu, 30 Oct 2014 01:32:37 +0000 (21:32 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/compiler/abstract_compiler.nit

index 5535923..6e8a8f6 100644 (file)
@@ -429,6 +429,8 @@ class MakefileToolchain
                makefile.write("clean:\n\trm {ofiles.join(" ")} 2>/dev/null\n\n")
                makefile.close
                self.toolcontext.info("Generated makefile: {makepath}", 2)
+
+               makepath.file_copy_to "{compile_dir}/Makefile"
        end
 
        fun compile_c_code(compiler: AbstractCompiler, compile_dir: String)