help-make
[Top][All Lists]
Advanced

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

why can .SECONDARY change build order? (fwd)


From: Martin d'Anjou
Subject: why can .SECONDARY change build order? (fwd)
Date: Fri, 9 Dec 2005 09:30:25 -0500 (EST)

Hi,

The prerequisite build order does not necessarily match the explicit order on the target line. I have a very simplistic example to show that .SECONDARY changes the build order:

all: prereq1 prereq2

prereq1:
        @echo 1

prereq2:
        @echo 2

.SECONDARY: prereq1

Run with and without .SECONDARY (comment it out), and the order changes (1-2 and 2-1). I don't understand why. Can someone explain?

Thanks,
Martin d'Anjou




reply via email to

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