This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] libiberty build-in-srcdir: ignore VPATH.
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 19 Jan 2004 22:07:53 -0200
- Subject: Re: [patch] libiberty build-in-srcdir: ignore VPATH.
- Organization: GCC Team, Red Hat
- References: <200401192247.i0JMlHxv024177@greed.delorie.com>
On Jan 19, 2004, DJ Delorie <dj@redhat.com> wrote:
> ! ./_doprnt.o: $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \
> $(INCDIR)/safe-ctype.h
> ! if [ x"$(PICFLAG)" != x ]; then \
> ! $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
> ! else true; fi
> ! $(COMPILE.c) $< $(OUTPUT_OPTION)
Err... $< is only portable in suffix rules. It is $@ that is
portable in both suffix and regular rules. Sorry if I wasn't clear
when you asked me. Or did you just give up compatibility with
non-GNU make?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Happy GNU Year! oliva@{lsd.ic.unicamp.br, gnu.org}
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist Professional serial bug killer