Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
ExportMakeFile Option
puneet_m:
Export Makefile Option has been disabled from the Build Menu. I want to enable that option. How should I go about doing this?
XayC:
There's a plug-in that can help you.
Here: http://forums.codeblocks.org/index.php/topic,6241.msg47767.html
Regards, XayC
puneet_m:
I want to enable the following function at the location plugins\compilergcc\compilergcc.cpp-->
I have made the change in compiler_menu.xrc, but it still diabled. So how should I enable it?
void CompilerGCC::OnExportMakefile(wxCommandEvent& event)
{
cbMessageBox(_("This functionality has been temporarily removed from Code::Blocks.\n"
"With all the updates from the last couple of months, the makefile exporter "
"is not anymore in-sync with the rest of the build process.\n"
"We are sorry for the inconvenience..."),
_T("Warning"),
wxICON_WARNING);
return;
if (!CompilerValid())
return;
wxString makefile = wxGetTextFromUser(_("Please enter the \"Makefile\" name:"), _("Export Makefile"), ProjectMakefile());
if (makefile.IsEmpty())
return;
wxSetWorkingDirectory(m_Project->GetBasePath());
if (UseMake())
{
DoCreateMakefile(false, makefile);
}
else
{
MakefileGenerator generator(this, m_Project, makefile, m_PageIndex);
generator.CreateMakefile();
}
wxString msg;
msg.Printf(_("\"%s\" has been exported in the same directory as the project file."), makefile.c_str());
cbMessageBox(msg);
}
XayC:
Although I don't know much about that, I guess that if the feature has been removed there's a reason (which seems quite well described by a portion of code you quoted).
--- Quote ---This functionality has been temporarily removed [...] is not anymore in-sync with the rest of the build process.
--- End quote ---
puneet_m:
Agreed, but I still want to enable it. What is the procedure to do so?
Thanks,
Puneet
Navigation
[0] Message Index
[#] Next page
Go to full version