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. Modifying the del command in makefile?

Modifying the del command in makefile?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qmakechange commandsqmakedelfile
10 Posts 2 Posters 3.7k Views
  • 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.
  • K Offline
    K Offline
    koahnig
    wrote on 3 May 2017, 19:45 last edited by koahnig 5 Apr 2017, 08:32
    #1

    Basically I am using IFW and like to update an installer.exe and a repository folder, which does not really work.

    Therefore, I am using rebuild. The exe is being removed and build again. However, the repository does not change. The reason is that the repository is a folder and not a single file.
    I am on windows. The problem is that the folder is not cleaned, because the del command triggers an input from keyboard, which will not come of course. The only thing to do would be adding the parameter '/Q' to the del command as used in the makefile.

    However, the makefile is generated by qmake. Are there possibilities to modify the standard commands for the makefile through *.pro file?

    Vote the answer(s) that helped you to solve your issue(s)

    M 1 Reply Last reply 3 May 2017, 20:49
    0
    • K koahnig
      3 May 2017, 19:45

      Basically I am using IFW and like to update an installer.exe and a repository folder, which does not really work.

      Therefore, I am using rebuild. The exe is being removed and build again. However, the repository does not change. The reason is that the repository is a folder and not a single file.
      I am on windows. The problem is that the folder is not cleaned, because the del command triggers an input from keyboard, which will not come of course. The only thing to do would be adding the parameter '/Q' to the del command as used in the makefile.

      However, the makefile is generated by qmake. Are there possibilities to modify the standard commands for the makefile through *.pro file?

      M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 3 May 2017, 20:49 last edited by mrjj 5 Mar 2017, 20:51
      #2

      @koahnig

      Hi
      Disclaimer: I dont know IFW so forgive me if not what u ask for.

      I think u can alter the
      "C:\Qt\5.7\mingw53_32\mkspecs\features\spec_post.prf" (note compiler)

      QMAKE_DEL_FILE = del

      http://stackoverflow.com/questions/20324061/where-are-variables-such-as-mkdir-and-copy-dir-defined

      The link below also mention
      win32:QMAKE_DEL_FILE = del /q
      ( The talk seems for older version of Qt so not sure it still works)

      http://www.qtcentre.org/threads/9287-How-do-I-get-QMAKE_CLEAN-to-delete-a-directory

      Did not test. Just read.

      K 1 Reply Last reply 4 May 2017, 07:15
      1
      • M mrjj
        3 May 2017, 20:49

        @koahnig

        Hi
        Disclaimer: I dont know IFW so forgive me if not what u ask for.

        I think u can alter the
        "C:\Qt\5.7\mingw53_32\mkspecs\features\spec_post.prf" (note compiler)

        QMAKE_DEL_FILE = del

        http://stackoverflow.com/questions/20324061/where-are-variables-such-as-mkdir-and-copy-dir-defined

        The link below also mention
        win32:QMAKE_DEL_FILE = del /q
        ( The talk seems for older version of Qt so not sure it still works)

        http://www.qtcentre.org/threads/9287-How-do-I-get-QMAKE_CLEAN-to-delete-a-directory

        Did not test. Just read.

        K Offline
        K Offline
        koahnig
        wrote on 4 May 2017, 07:15 last edited by
        #3

        @mrjj

        Thanks for reply.

        I was actually looking for such thing like QMAKE_DEL_FILE, but it is not documented (anymore?).

        BTW it has to be in this case

        win32:QMAKE_DEL_FILE = del /q /s
        

        because of subfolders.

        It still works for Qt 5.4.

        Vote the answer(s) that helped you to solve your issue(s)

        M 1 Reply Last reply 4 May 2017, 10:32
        1
        • K koahnig
          4 May 2017, 07:15

          @mrjj

          Thanks for reply.

          I was actually looking for such thing like QMAKE_DEL_FILE, but it is not documented (anymore?).

          BTW it has to be in this case

          win32:QMAKE_DEL_FILE = del /q /s
          

          because of subfolders.

          It still works for Qt 5.4.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 4 May 2017, 10:32 last edited by
          #4

          @koahnig said in Modifying the del command in makefile?:

          Ok super. that might come in handy.

          I could not find the any docs either beside this one
          https://wiki.qt.io/Undocumented_QMake
          which might explain the lack other the other docs:)

          K 1 Reply Last reply 4 May 2017, 16:41
          1
          • M mrjj
            4 May 2017, 10:32

            @koahnig said in Modifying the del command in makefile?:

            Ok super. that might come in handy.

            I could not find the any docs either beside this one
            https://wiki.qt.io/Undocumented_QMake
            which might explain the lack other the other docs:)

            K Offline
            K Offline
            koahnig
            wrote on 4 May 2017, 16:41 last edited by
            #5

            @mrjj

            Thanks for sharing this link.

            Maybe it was that doc I had read it before. When, it have been a long time ago.

            Vote the answer(s) that helped you to solve your issue(s)

            M 1 Reply Last reply 4 May 2017, 17:09
            0
            • K koahnig
              4 May 2017, 16:41

              @mrjj

              Thanks for sharing this link.

              Maybe it was that doc I had read it before. When, it have been a long time ago.

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 4 May 2017, 17:09 last edited by
              #6

              @koahnig
              Np, the SUBDIRS section looks interesting.
              Also i had no idea that wildcards can be used iscopes :)
              win32-msvc* {

              K 1 Reply Last reply 4 May 2017, 18:55
              0
              • M mrjj
                4 May 2017, 17:09

                @koahnig
                Np, the SUBDIRS section looks interesting.
                Also i had no idea that wildcards can be used iscopes :)
                win32-msvc* {

                K Offline
                K Offline
                koahnig
                wrote on 4 May 2017, 18:55 last edited by
                #7

                @mrjj

                Well, the wildcard thing I know for a very long time already ;)

                Exactly since this reply to my very first post in this forum.

                Vote the answer(s) that helped you to solve your issue(s)

                M 1 Reply Last reply 4 May 2017, 20:06
                0
                • K koahnig
                  4 May 2017, 18:55

                  @mrjj

                  Well, the wildcard thing I know for a very long time already ;)

                  Exactly since this reply to my very first post in this forum.

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 4 May 2017, 20:06 last edited by
                  #8

                  @koahnig
                  Hehe. 6 years. :)
                  How time flies.
                  I assume modifying spec_post.prf is a bad idea since it might be overwritten and
                  if
                  win32:QMAKE_DEL_FILE = del /q
                  works there might be no reason at all.

                  K 1 Reply Last reply 4 May 2017, 20:15
                  1
                  • M mrjj
                    4 May 2017, 20:06

                    @koahnig
                    Hehe. 6 years. :)
                    How time flies.
                    I assume modifying spec_post.prf is a bad idea since it might be overwritten and
                    if
                    win32:QMAKE_DEL_FILE = del /q
                    works there might be no reason at all.

                    K Offline
                    K Offline
                    koahnig
                    wrote on 4 May 2017, 20:15 last edited by
                    #9

                    @mrjj

                    I am not sure, but I think I had to use once again. And yes, time flies :)

                    And for sure for QMAKE_DEL_FILE there is no relevance.

                    Vote the answer(s) that helped you to solve your issue(s)

                    M 1 Reply Last reply 4 May 2017, 20:33
                    1
                    • K koahnig
                      4 May 2017, 20:15

                      @mrjj

                      I am not sure, but I think I had to use once again. And yes, time flies :)

                      And for sure for QMAKE_DEL_FILE there is no relevance.

                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 4 May 2017, 20:33 last edited by
                      #10

                      @koahnig
                      If you promise not to tell anymore, i just discovered that it can actually autocomplete in .pro file :)
                      Very handy. ;)

                      1 Reply Last reply
                      0

                      10/10

                      4 May 2017, 20:33

                      • Login

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