Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, February 2008
Generate customised script in Makefile


Message 1 in thread

Hi,

Is it possible to use a project.pro to generate a statement in the
Makefile to call my own script after $(TARGET) in linux?

For example, I have a script register.sh, I like it is called in
following Makefile:

$(TARGET): ui/ui_QtGui.h $(OBJECTS)
    @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/
    $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
    @register.sh

Thank you.

Kind Regards,

Jim

--
 [ signature omitted ] 

Message 2 in thread

On Wednesday 27 February 2008 04.21:08 hce wrote:
> Hi,
>
> Is it possible to use a project.pro to generate a statement in the
> Makefile to call my own script after $(TARGET) in linux?
>
> For example, I have a script register.sh, I like it is called in
> following Makefile:
>
> $(TARGET): ui/ui_QtGui.h $(OBJECTS)
>     @$(CHK_DIR_EXISTS) bin/ || $(MKDIR) bin/
>     $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
>     @register.sh
>
> Thank you.
>
> Kind Regards,
>
> Jim
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/

Hello,

You might be interested in that chapter from the doc:

http://doc.trolltech.com/4.3/qmake-environment-reference.html#customizing-makefile-output

Cheers

Samuel

--
 [ signature omitted ]