Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to use QMAKE to execute wildcard clean targets?

How to use QMAKE to execute wildcard clean targets?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 329 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SocketSackett
    wrote on last edited by
    #1

    I want to do something like this, QMAKE_CLEAN += QMAKE_DEL_DIR($(MOC_DIR)) /S /Q, so that it cleans up all the files on Windows so that it generates it in the .vcxproj file. In this case MOC_DIR maps to the ../temp directory. It is tricky getting this to work & the answer likely is a semantic error. TIA. BTW, I am using Qt 5.15.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Try good old message debugging ;-)

      QMAKE_CLEAN += QMAKE_DEL_DIR($(MOC_DIR)) /S /Q
      message($${QMAKE_CLEAN})
      

      the answer likely is a semantic error.

      Yeah, qmake is very sensitive to those. Things to try:

      • use double dollar sign and curly brackets QMAKE_DEL_DIR($${MOC_DIR}) /S /Q
      • escape slashes

      (Z(:^

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved