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.