Results 1 to 6 of 6

Thread: dist-like target?

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

    Question dist-like target?

    I wonder how one creates a dist -like target with qmake (like make dist when using autoconf / automake). I looked at the documentation, but not much information is available. there's a DISTFILES variable, that's supposed to help in his, but no matter what I do, actually no 'dist' make target is created by qmake.

    am I missing something obvious?

    what I'd need is really something close to what automake / autoconf does. either:

    - make a distclean, put together the sources and some generated documentation, and create a tarball out of it.
    - compile the code, add header files & generated documentation, and create a tarball from that

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: dist-like target?

    Did you try just calling "make dist"? It works only on Unices, though...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Default Re: dist-like target?

    Quote Originally Posted by wysota View Post
    Did you try just calling "make dist"? It works only on Unices, though...
    sure I did. and for me, no dist target is generated. (I'm doing all this on Linux)

    can you provide a sample qmake file, that does generate a dist target for you?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: dist-like target?

    That's everything I have:
    qmake Code:
    1. SOURCES+=main.cpp
    To copy to clipboard, switch view to plain text mode 

    + an empty main.cpp file, of course.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Default Re: dist-like target?

    Quote Originally Posted by wysota View Post
    That's everything I have:
    qmake Code:
    1. SOURCES+=main.cpp
    To copy to clipboard, switch view to plain text mode 

    + an empty main.cpp file, of course.
    interesting. you're using the app template then?

    it seems no dist target is generated for other templates, like the subdirs template...

    hm...

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: dist-like target?

    That's correct. subdirs template doesn't create a dist target.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QtCreator and MSVC with x64 target
    By faldzip in forum Qt Tools
    Replies: 1
    Last Post: 16th June 2009, 09:10
  2. Minimal Linux dist to run Qt-app from
    By AnAx in forum Installation and Deployment
    Replies: 8
    Last Post: 6th May 2009, 16:00
  3. x86 host, mips target
    By zeitcheist in forum Installation and Deployment
    Replies: 1
    Last Post: 4th May 2009, 04:35
  4. Multiple destination target
    By mdecandia in forum Qt Programming
    Replies: 9
    Last Post: 13th June 2007, 16:42
  5. qmake-qt4 & TARGET
    By !Ci in forum Qt Programming
    Replies: 2
    Last Post: 27th September 2006, 22:34

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.