Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3883

qmake: incorrect distclean rule for static libraries with DESTDIR

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.1
    • 4.4.3
    • Build tools: qmake
    • None
    • f604c94f18104a88f5ed6274b2a62eda69efe937

    Description

      Consider the following .pro file:

      TEMPLATE = lib
      CONFIG += staticlib
      DESTDIR = foo
      TARGET= bar

      The actual result of running qmake on this .pro file results in the following Makefile contents:

      ...
      DESTDIR = foo/
      TARGET = libbar.a
      ...
      distclean: clean
      -$(DEL_FILE) $(TARGET)
      -$(DEL_FILE) Makefile
      ...

      However, the expected distclean rule is:

      distclean: clean
      -$(DEL_FILE) foo/$(TARGET)
      -$(DEL_FILE) Makefile

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              buddenha Oswald Buddenhagen
              sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes