Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Make clean tries to remove directory: "core"
Qt 6.11 is out! See what's new in the release blog

Make clean tries to remove directory: "core"

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 4.9k 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.
  • W Offline
    W Offline
    windkracht8
    wrote on last edited by
    #1

    Hello All,

    in my application there is a directory 'core' and it holds source files. But when I run make clean, make will try to remove this directory. On Windows it even succeeds. This is annoying as I need those files when I want to compile it again.

    When running qmake, it will put this in the Makefile:
    -$(DEL_FILE) *~ core *.core

    I don't want this line in there. '*~' would be nice, but the other two I don't need.

    Does anyone know how to prevent qmake from putting that line in the Makefile?

    Thanks, regards,
    Bart

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      How does your .pro file look like?

      1 Reply Last reply
      0
      • W Offline
        W Offline
        windkracht8
        wrote on last edited by
        #3

        .pro file:
        http://calcudoku.svn.sourceforge.net/viewvc/calcudoku/calcudoku.pro?revision=68&content-type=text/plain

        svn browse complete source:
        http://calcudoku.svn.sourceforge.net/viewvc/calcudoku/

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          core is usually the name of a coredump. On the clean step, qmake tries to remove these leftovers from a failed run or build. The line is hardcoded to the makefile generator of qmake. You'll have to rename the directory or move it to a subdirectory to prevent deletion.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • W Offline
            W Offline
            windkracht8
            wrote on last edited by
            #5

            Ok, to bad. But good to know.
            Thank you.

            1 Reply Last reply
            0

            • Login

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