News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

launch script/batch at end of process

Started by winz, February 07, 2011, 11:15:28 AM

Previous topic - Next topic

winz

Hi,

I want the computer 'beep' when a full compilation is done. I want that occur after linking operation in case of success but also if the compilation failed during compilation or linking operation.

For that I expected to call a batch (I am under win7) with a simple beep function.

I am using my own makefile (I am compiling Qt projects, the makefile is built by an external tool), so I cannot use the project build option > pre/post build step

Do you know if it is possible and how to do that?


Jenna

Quote from: winz on February 07, 2011, 11:15:28 AM
I am using my own makefile (I am compiling Qt projects, the makefile is built by an external tool), so I cannot use the project build option > pre/post build step

Why not ?

winz

sorry, of course I could but I already call a batch with some options when I configure my own makefile.
but in both case (if I call the batch with some makfile options or with C::B options) the batch is only called in case of successful compilation & linkage.

My compilation takes about 5mn and I would like to do some secondary job during this time and to be warn as soon current process is done... even in case of error

winz

If it's not possible with C::B options, do you know if it's possible with some makefile or gcc options that I missed ?

stahta01

Quote from: winz on February 07, 2011, 03:03:05 PM
If it's not possible with C::B options, do you know if it's possible with some makefile or gcc options that I missed ?

State your Code::Blocks version; because it is possible to use post/pre steps with a makefile the last time I checked.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

Quote from: stahta01 on February 07, 2011, 03:08:44 PM
Quote from: winz on February 07, 2011, 03:03:05 PM
If it's not possible with C::B options, do you know if it's possible with some makefile or gcc options that I missed ?

State your Code::Blocks version; because it is possible to use post/pre steps with a makefile the last time I checked.

Tim S.
If I understand right, the problem is, that a failed build does not call the postbuild steps (obviously) and therefore can not play a sound, beep or whatever.

winz

#6
That's it!

I'm using  Nightly builds 6931

post/pre steps with user makefile work fine but, as you said, a failed build does not call the postbuild steps
I am looking for an other c::b option, a c::b plugin or an advice about gcc/makefile switch