Hello Paul, * Paul Eggert wrote on Thu, Sep 07, 2006 at 06:13:11PM CEST: > > Here's another thought: how about this even-shorter version instead? > > alloca.h: alloca_.h > $(LN_F_S) $(srcdir)/alloca_.h $@ > > where $(LN_FS) expands to "ln -fs" in the typical case, or to > "rm -f $@ && cp" on hosts where "ln -fs" doesn't work (e.g., Solaris 9 > and earlier).
I like it, but it runs a bit contrary to command optimization; for example, the HP-UX make I tested will try to update the symlink target upon every invocation, not just the first one. (Not analyzed further.) Cheers, Ralf