This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] libiberty build-in-srcdir: ignore VPATH.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]