Changeset 246


Ignore:
Timestamp:
Oct 17, 2009, 12:34:40 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

configure.cmd: Generate immediate child Makefiles of the main Makefile (otherwise 'make release|debug' won't work due to the qmake bug).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.cmd

    r242 r246  
    17141714    call SaySay "Finding project files. Please wait..."
    17151715
    1716     /* @todo walk through the source tree and call qmake on .pro files */
     1716    /* @todo walk through the demos, examples, doc, translations trees
     1717     * (depending on G.CFG_BUILD_PARTS) and call qmake on .pro files */
    17171718
    17181719    call SaySay "Creating makefiles. Please wait..."
    17191720
    1720     /* so far, we only create the main Makefile */
    1721     address "cmd" G.OutPath"\bin\qmake" G.RelPath"\projects.pro -o Makefile"
    1722     make_rc = rc
    1723 
    1724     /* exit on failure */
    1725     if (make_rc \= 0)  then
    1726         call Done 2d
     1721    /* generate the root makefile */
     1722    if (\FileExists(G.OutPath"\Makefile")) then do
     1723
     1724        address "cmd" G.OutPath"\bin\qmake" G.RelPath"\projects.pro -o" G.OutPath"\Makefile"
     1725        make_rc = rc
     1726        /* exit on failure */
     1727        if (make_rc \= 0)  then
     1728            call Done 2
     1729
     1730        /* generate the immediate child makefiles, otherwise 'make release|debug'
     1731         * from the root directory will not work (because there are no real
     1732         * Makefile targets and make will complain Makefiles are missing which
     1733         * I consider as a qmake bug) */
     1734        address "cmd" G.MAKE "-f" G.OutPath"\Makefile" "qmake"
     1735        make_rc = rc
     1736        /* exit on failure */
     1737        if (make_rc \= 0)  then
     1738            call Done 2
     1739    end
    17271740
    17281741    /*--------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.