For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > March 2008 > "Always Execute" target in gnu make









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author "Always Execute" target in gnu make
GJS

2008-03-23, 7:23 pm

I am trying to duplicate the .INIT function available on the Alpha's Tru64 unix
make.

This target is always executed first when make starts up.

Is there any function in gnu make that does this, or anyway to duplicate it?

TIA

.... Greg

Maxim Yegorushkin

2008-03-24, 4:35 am

On 23 Mar, 21:46, "GJS" <g...@a.com> wrote:
> I am trying to duplicate the .INIT function available on the Alpha's Tru64 unix
> make.
>
> This target is always executed first when make starts up.
>
> Is there any function in gnu make that does this, or anyway to duplicate it?


You could use shell function. It can be invoked before make starts
executing rules.
http://www.gnu.org/software/make/ma...#Shell-Function
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com