Results 1 to 1 of 1

Thread: Inconsist makefile content for alternative makefile filename

  1. #1
    Join Date
    Oct 2010
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Inconsist makefile content for alternative makefile filename

    In my current project, I plan to have different makefile filenames for Windows and Mac system. So, one of my choice is to use
    Makefile.win32 as Windows makefile filename
    Makefile.mac as Mac makefile finename

    In my root .pro file, I set
    win32{
    QMAKE_MAKEFILE = Makefile.win32
    }
    By this method, I can
    qmake
    mingw32-make -f Makefile.win32

    to build all debug tree without problems.


    However, it doesn't work for
    mingw32-make debug -f Makefile.win32

    or
    mingw32-make release -f Makefile.win32



    After I checked the content of the generated Makefile.win32, The command for default target is correct, but the commands for debug or release (and check) target lost the -f $(MAKEFILE) option
    sub-averPen: averPen\$(MAKEFILE) FORCE
    cd averPen\ && $(MAKE) -f $(MAKEFILE)
    sub-averPen-sub_Debug: averPen\$(MAKEFILE)
    cd averPen\ && $(MAKE) debug
    That's why I cannot use debug or release target to build my system.


    Is there any method to modify some mkspecs\XXX\YYY.prf to patch it?
    Last edited by Huah Tu; 12th October 2010 at 04:28.

Similar Threads

  1. Generate makefile
    By kaszewczyk in forum Newbie
    Replies: 2
    Last Post: 22nd March 2010, 18:12
  2. not able to change Makefile
    By shamik in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2007, 12:00
  3. Makefile warnings
    By Doug Broadwell in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2007, 19:42
  4. makefile troubles
    By Walsi in forum Qt Programming
    Replies: 6
    Last Post: 12th April 2007, 15:12
  5. Problem with a makefile
    By Tweety in forum Qt Programming
    Replies: 16
    Last Post: 15th February 2006, 19:34

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.