[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] ensure that generated files are read-only
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] ensure that generated files are read-only |
Date: |
Thu, 7 Sep 2006 20:28:48 +0200 |
User-agent: |
KMail/1.9.1 |
Paul Eggert wrote:
> 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).
It depends not only on the host but also on the file system. Even on
Linux and Solaris, "ln -s" doesn't work on vfat and smb filesystems.
I doubt that saving one Makefile line here is worth yet another autoconf
test and possibly trouble on HP-UX. I'm satisfied with the "cp" and
"mv" commands: it works everywhere and doesn't need an autoconf test.
Bruno
- Re: ensure that generated files are read-only, (continued)
- Re: [bug-gnulib] ensure that generated files are read-only,
Bruno Haible <=
Re: ensure that generated files are read-only, Jim Meyering, 2006/09/08
Re: [bug-gnulib] ensure that generated files are read-only, Bruno Haible, 2006/09/07
- Re: ensure that generated files are read-only, Simon Josefsson, 2006/09/07
- Re: ensure that generated files are read-only, Simon Josefsson, 2006/09/07
- Re: ensure that generated files are read-only, Ralf Wildenhues, 2006/09/07
- Re: ensure that generated files are read-only, Bruce Korb, 2006/09/07
- Re: ensure that generated files are read-only, Simon Josefsson, 2006/09/07
- Re: ensure that generated files are read-only, Ralf Wildenhues, 2006/09/07
- Re: ensure that generated files are read-only, Simon Josefsson, 2006/09/07
- Re: ensure that generated files are read-only, Bruce Korb, 2006/09/07