help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Initialization targets


From: Rafael Garabato
Subject: Initialization targets
Date: Wed, 16 Jan 2008 13:14:40 -0200

Dear make experts,

       I would like to know if it exists a way to define a target that will always be executed once and prior to any other target,  regardless of the target that is specified.

For example, given the following makefile


all: dep1 dep2
     echo all

dep1:
     echo dep1

dep2:
     echo dep2

always:
     echo always



If I do make all , make dep1, or make dep2; what I want is that the "always" target be executed at the begining before any other target.


Thanks for your help,
        Rafael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]