void MingwMakefileGenerator::writeBuildRulesPart(QTextStream &t)
{
- if (project->first("TEMPLATE") == "aux") {
- t << "first:" << endl;
- t << "all:" << endl;
- return;
- }
-
t << "first: all" << endl;
t << "all: " << escapeDependencyPath(fileFixify(Option::output.fileName())) << " " << valGlue(escapeDependencyPaths(project->values("ALL_DEPS"))," "," "," ") << " $(DESTDIR_TARGET)" << endl << endl;
t << "$(DESTDIR_TARGET): " << var("PRE_TARGETDEPS") << " $(OBJECTS) " << var("POST_TARGETDEPS");
} else {
t << "\n\t" << objectsLinkLine << " " ;
}
- } else {
+ } else if (project->first("TEMPLATE") != "aux") {
t << "\n\t" << "$(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) " << objectsLinkLine << " " << " $(LIBS)";
}
if(!project->isEmpty("QMAKE_POST_LINK"))
void NmakeMakefileGenerator::writeBuildRulesPart(QTextStream &t)
{
const QString templateName = project->first("TEMPLATE");
- if (templateName == "aux") {
- t << "first:" << endl;
- t << "all:" << endl;
- return;
- }
t << "first: all" << endl;
t << "all: " << fileFixify(Option::output.fileName()) << " " << varGlue("ALL_DEPS"," "," "," ") << "$(DESTDIR_TARGET)" << endl << endl;
t << "\n\t" << "$(LIBAPP) $(LIBFLAGS) /OUT:$(DESTDIR_TARGET) @<<" << "\n\t "
<< "$(OBJECTS)"
<< "\n<<";
- } else {
+ } else if (templateName != "aux") {
const bool embedManifest = ((templateName == "app" && project->isActiveConfig("embed_manifest_exe"))
|| (templateName == "lib" && project->isActiveConfig("embed_manifest_dll")
&& !(project->isActiveConfig("plugin") && project->isActiveConfig("no_plugin_manifest"))