This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
odd Makefile construct - anyone know why?
- To: gcc at gcc dot gnu dot org
- Subject: odd Makefile construct - anyone know why?
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Sat, 21 Oct 2000 15:31:19 -0700
In a large number of places we have Makefile constructs such as
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(BIG_SWITCHFLAG) \
`echo $(PARSE_C) | sed 's,^\./,,'`
Does anyone know the reason for the `echo | sed` bit? I know it
deletes a './' from the beginning of whatever $(PARSE_C) is, but I
cannot figure out why that would be necessary. This is done whenever
we override the suffix rule for compiling a file.
zw