[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] Re: [patch] byteswap module fails when building from su
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] Re: [patch] byteswap module fails when building from subdir |
Date: |
Sat, 30 Jul 2005 16:42:32 +0200 |
User-agent: |
KMail/1.5 |
Oskar Liljeblad wrote:
> > byteswap.h: byteswap_.h
> > - cp $(srcdir)/$< address@hidden
> > + cp $(srcdir)/byteswap_.h address@hidden
> > mv address@hidden $@
>
> Can you please explain why this is necessary,
> so that I won't make the same mistake in the future again?
See the POSIX specification of "make", at
http://www.opengroup.org/onlinepubs/009695399/utilities/make.html :
$< is defined for inference rules only. Not for target rules.
GNU make implements $< also for target rules, but other "make" programs
don't.
Bruno