Changeset 292


Ignore:
Timestamp:
Nov 6, 2009, 3:03:15 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake/GNUMAKE/os/2: Add the MAKEFILE variable to the generated make file that contains its name. Always convert separators to native when escaping paths for the DOS-like command processors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/os2/gnumake.cpp

    r247 r292  
    7777        ret.replace(' ', "\\ ");
    7878    } else {
     79
    7980        ret.replace(QRegExp("\""), "");
    8081        ret.replace(QRegExp("[\\\\/]$"), "");
     
    276277void GNUMakefileGenerator::writeGNUParts(QTextStream &t)
    277278{
    278     t << "QMAKESPECDIR  = " << quote << specdir() << quote << endl << endl;
     279    t << "QMAKESPECDIR  = " << escapeFilePath(specdir()) << endl;
     280
     281    QString ofile = escapeFilePath(Option::output.fileName());
     282    if(ofile.lastIndexOf(Option::dir_sep) != -1)
     283        ofile = ofile.right(ofile.length() - ofile.lastIndexOf(Option::dir_sep) -1);
     284    t << "MAKEFILE      = " << ofile << endl << endl;
    279285
    280286    writeStandardParts(t);
Note: See TracChangeset for help on using the changeset viewer.