Results 1 to 2 of 2

Thread: Make command 'make' do some action after compiling! (Not during 'make install')

  1. #1
    Join Date
    Jul 2010
    Location
    /home/hakermania/
    Posts
    233
    Thanks
    129
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Make command 'make' do some action after compiling! (Not during 'make install')

    I want after the compilation of my program, the executable to be automatically renamed. I know that I can edit the .pro file in order to tell it do some action during the 'make install' action. Now, i want it to do some action after finished compiling it. Is this possible?

    Thx in advance! =)
    When you 're trying to help somebody in the newbie section, don't forget that he is a newbie. Be specific and give examples.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Make command 'make' do some action after compiling! (Not during 'make install')

    Of course, but it depends where you want to change it.

    In Qt Creator I think it is possible to add custom make steps.
    If you use the command line, you can create a script that runs make, your custom commands and then make install.
    You can also manually or the .pro file change the Makefile

Similar Threads

  1. Replies: 6
    Last Post: 10th March 2011, 17:42
  2. Replies: 3
    Last Post: 2nd March 2010, 18:52
  3. "make install" and "make clean" on Windows for Qt
    By Berberis in forum Installation and Deployment
    Replies: 0
    Last Post: 30th November 2009, 00:02
  4. Cant find make command: mingw32-make.exe
    By Nadia in forum Installation and Deployment
    Replies: 1
    Last Post: 26th August 2009, 10:09
  5. Window OS make distclean && qmake && make one line
    By patrik08 in forum General Programming
    Replies: 4
    Last Post: 22nd March 2007, 11:43

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.