Results 1 to 3 of 3

Thread: make QMAKE_CLEAN delete whole directories?

  1. #1
    Join Date
    Jun 2008
    Posts
    49
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default make QMAKE_CLEAN delete whole directories?

    I wonder how I can make qmake delete complete directories when doing a "make clean"? I can add additional file, or wildcards by:

    QMAKE_CLEAN += foo/bar/*

    but this will invoke "rm -f" only. is there a way to make qmake delete complete directory structures on an invokation to make clean?

  2. #2
    Join Date
    Apr 2007
    Posts
    44
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: make QMAKE_CLEAN delete whole directories?

    I think you can edit qmake.conf
    in mkspecs folder

    some example

    Qt Code:
    1. QMAKE_COPY = copy /y
    2. QMAKE_COPY_DIR = xcopy /s /q /y /i
    3. QMAKE_MOVE = move
    4. QMAKE_DEL_FILE = del
    5. QMAKE_DEL_DIR = rmdir
    6. QMAKE_CHK_DIR_EXISTS = if not exist
    7. QMAKE_MKDIR = mkdir
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jun 2008
    Posts
    49
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: make QMAKE_CLEAN delete whole directories?

    Quote Originally Posted by Teerayoot View Post
    I think you can edit qmake.conf
    in mkspecs folder

    some example

    Qt Code:
    1. QMAKE_COPY = copy /y
    2. QMAKE_COPY_DIR = xcopy /s /q /y /i
    3. QMAKE_MOVE = move
    4. QMAKE_DEL_FILE = del
    5. QMAKE_DEL_DIR = rmdir
    6. QMAKE_CHK_DIR_EXISTS = if not exist
    7. QMAKE_MKDIR = mkdir
    To copy to clipboard, switch view to plain text mode 
    well, but that's basically overriding the official qmake setup...

Similar Threads

  1. Replies: 4
    Last Post: 19th February 2009, 11:10
  2. Window OS make distclean && qmake && make one line
    By patrik08 in forum General Programming
    Replies: 4
    Last Post: 22nd March 2007, 10:43
  3. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57
  4. c++, placement delete upon exception
    By stinos in forum General Programming
    Replies: 6
    Last Post: 31st October 2006, 15:38

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
  •  
Qt is a trademark of The Qt Company.