On 07/05/2012 12:11 PM, Akim Demaille wrote: > > Le 4 juil. 2012 à 11:54, Stefano Lattarini a écrit : > >> Hi Akim. > > Hi! > >>> There no way to have PHONY targets first? About Makefile. >>> >> I'm not sure I'm following. You mean having a way to ensure some target are >> considered before all the other ones (apart their dependencies, of course)? >> Like, in an hypothetical version of GNU make 3.83, something like this: >> >> .EARLY: $(BUILT_SOURCES) > > I was referring to add dependencies to Makefile. Since it is > handled very early, I guess it is quite equivalent to your > .EARLY. I believe such dependencies do not trigger reloading Makefile. > > >> $ cat Makefile >> all: >> echo all >> >> Makefile: foo bar baz >> As I said in my previous mail, I've already tried something like this, but sadly it kept broking the 'remake-gnulib-add-acsubst.sh' test case, which exercises a scenario that Gnulib Makefiles need to support. So no good, unless we manage to find another idiom that Gnulib can use to have its use case still working. Fell free to give it a shot, as I'd be happy to apply the above simplification.
For the moment, I think we should just apply my patch; we can implement incremental improvements on it later (if we manage to find them ;-) Regards, Stefano
