bug-gnulib
[Top][All Lists]
Advanced

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

Re: ensure that generated files are read-only


From: Ralf Wildenhues
Subject: Re: ensure that generated files are read-only
Date: Thu, 7 Sep 2006 18:45:55 +0200
User-agent: Mutt/1.5.13 (2006-09-01)

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




reply via email to

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